rodecomp/Source/UI/Window/UITransMenuWnd.h
ragnarok-clanker 3248a87591 Decompile 6 functions in Source/UI/Window/UIMileageWnd.cpp, Source/UI/Window/UIMileageWnd.h, ...
Batch #5180 by eAthena: 2 byte-identical, 4 confirmed by peer review.

- fn_12894 UIMileageWnd::Slot15: logic confirmed by peer review
- fn_12896 UIOpenMailBoxWnd::Slot15: logic confirmed by peer review
- fn_12897 UIOpenRoulletteWnd::Slot15: logic confirmed by peer review
- fn_12900 UITransMenuWnd::Slot15: logic confirmed by peer review
- fn_12909 UIOpenMailBoxWnd::Paint: byte-identical
- fn_12910 UIOpenRoulletteWnd::Paint: byte-identical

Peer-reviewed-by: willerthal
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 09:15:57 +00:00

46 lines
1.2 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:
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;
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