rodecomp/Source/UI/Window/UITransMenuWnd.h
ragnarok-clanker bd41eb31d8 Decompile fn_14486 (CUIImageTextButton::CUIImageTextButton)
Batch #8093 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_14486 CUIImageTextButton::CUIImageTextButton: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, secret, gordaoprogramas
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-31 13:55:01 +00:00

48 lines
1.4 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_WINDOW_UITRANSMENUWND_H
#define RAGNAROK_SOURCE_UI_WINDOW_UITRANSMENUWND_H
#include "UI/Window/UIFrameWnd.h"
#include <vector>
struct UIButtonContext;
struct TransMenuItem {
/* 0000 */ char text[24];
/* 0018 */ int command;
/* 001C */ bool enabled;
};
class UITransMenuWnd : public UIFrameWnd {
public:
UITransMenuWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
void Resize(int width, int height) override;
void Move(int x, int y) override;
bool Slot07(void* output) override;
void Slot15(int width, int height) override;
void Paint() override;
void Slot25(int x, int y) override;
void Slot27(int x, int y) override;
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
void ClearItems();
protected:
/* 00B4 */ std::vector<TransMenuItem> m_items;
/* 00C0 */ std::uint32_t unknown_00C0;
/* 00C4 */ std::uint32_t unknown_00C4;
/* 00C8 */ int m_width;
/* 00CC */ int m_height;
/* 00D0 */ std::uint32_t unknown_00D0;
/* 00D4 */ std::uint32_t unknown_00D4;
/* 00D8 */ std::uint32_t unknown_00D8;
/* 00DC */ int m_lineHeight;
/* 00E0 */ int m_margin;
/* 00E4 */ int m_selected;
UIButtonContext* m_controls;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(TransMenuItem) == 0x20);
#endif
#endif