Decompile fn_12091 (UIWhisperWnd::Slot43)

Batch #1968 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_12091 UIWhisperWnd::Slot43: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/UI/WindowOverlay.cpp
This commit is contained in:
ragnarok-clanker 2026-10-29 00:17:53 +00:00
commit 5530c429bd
4 changed files with 24 additions and 0 deletions

View file

@ -17,6 +17,7 @@ public:
void Paint() override;
void Slot26(int x, int y) override;
void Slot33(int x, int y) override;
void Slot43() override;
protected:
UIButtonContext* m_controls;

View file

@ -29,6 +29,7 @@ struct SpriteRleImage;
struct SpriteFrameCell;
class CBitmapRes;
class CActRes;
class TextureCache;
struct WindowReplayRecorder;
struct UIWindowContext {
@ -41,6 +42,7 @@ struct UIWindowContext {
WindowRegistration& registration;
UIWindowMgr& windowMgr;
std::unordered_set<UIWindow*>& deferredDeletion;
TextureCache& textures;
void DestroyDeferredChildren();
};

View file

@ -0,0 +1,20 @@
#include "Render/Primitives/AlphaRectangle.h"
#include "Render/Renderer.h"
#include "Render/TextureQuad.h"
#include "UI/Chat/UIWhisperWnd.h"
// OFFSET: 0x008D0DB0
// FUNCTION: fn_12091
void UIWhisperWnd::Slot43() {
int x = 0;
int y = 0;
this->ToScreen(x, y);
DrawAlphaRectangle(
g_renderer->primitives, this->m_context->textures, g_renderer->queues, x + 1, y + 1, this->geometry.width - 2, this->geometry.height, 0x66000000,
g_renderer->fog.supported != 0, g_depthStart, g_depthEnd
);
DrawAlphaRectangle(
g_renderer->primitives, this->m_context->textures, g_renderer->queues, x + 1, y + 1, this->geometry.width - 2, 17, 0x449EB6E4,
g_renderer->fog.supported != 0, g_depthStart, g_depthEnd
);
}

View file

@ -700,6 +700,7 @@
"Source/UI/Window/WindowRetirement.cpp": 2,
"Source/UI/WindowBackground.cpp": 2,
"Source/UI/WindowLowerBorder.cpp": 2,
"Source/UI/WindowOverlay.cpp": 2,
"Source/UI/WindowSprite.cpp": 2,
"Source/UI/WindowTitlebar.cpp": 2,
"Source/Utility/AES.cpp": 0,