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:
parent
9fb77c2661
commit
5530c429bd
4 changed files with 24 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
20
Source/UI/WindowOverlay.cpp
Normal file
20
Source/UI/WindowOverlay.cpp
Normal 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
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue