rodecomp/Source/UI/Window/UIFrameWnd.h
ragnarok-clanker 7f865917a0 Decompile 5 functions in Source/UI/Acceptance/UIChooseSellBuyWnd.cpp, Source/UI/Window/UIMessageBox.cpp, ...
Batch #1872 by Yommy: 5 byte-identical, 0 confirmed by peer review.

- fn_12215 UIChooseWarpWnd::Paint: byte-identical
- fn_12216 UIChooseWnd::Paint: byte-identical
- fn_12241 UIPasswordWnd::Paint: byte-identical
- fn_12247 UISayDialogWnd::Paint: byte-identical
- fn_12257 UIToolTipWnd::Paint: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-10-28 23:07:36 +00:00

56 lines
1.6 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_WINDOW_UIFRAMEWND_H
#define RAGNAROK_SOURCE_UI_WINDOW_UIFRAMEWND_H
#include "UI/Window/FrameTextCache.h"
#include "UI/Window/UIWindow.h"
struct WindowSnapping;
class WindowManagerWindows;
class UIBitmapButton;
struct UIButtonContext;
struct UIFrameContext {
WindowSnapping& snapping;
WindowManagerWindows& windows;
const int& dragLimitX;
const int& dragLimitY;
};
class UIFrameWnd : public UIWindow {
public:
UIFrameWnd(UIWindowContext& windowContext, UIFrameContext& frameContext, unsigned char cached);
~UIFrameWnd() override;
bool Slot02() override;
void Move(int x, int y) override;
void Slot12() override;
void Slot13(int dx, int dy) override;
void Slot25(int x, int y) override;
void Slot27(int x, int y) override;
void Slot28(int x, int y) override;
void Slot31(int x, int y) override;
void Slot36() override;
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
std::vector<std::uint32_t> Slot44() override;
int Slot46() override;
UIBitmapButton* AddCloseButton(UIButtonContext& controls, const char* tooltip, int width);
void DrawBorder(int x, int y, int width, int height);
protected:
/* 007C */ int m_dragX;
/* 0080 */ int m_dragY;
/* 0084 */ int m_originX;
/* 0088 */ int m_originY;
/* 008C */ int m_message0;
/* 0090 */ int m_message1;
/* 0094 */ FrameTextCache m_textCache;
UIFrameContext* m_frameContext;
protected:
void ToScreen(int& x, int& y) const;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(UIFrameWnd) == 188);
#endif
#endif