rodecomp/Source/UI/Dialogs/UIMiniMapWnd.h
ragnarok-clanker f2907f563e Decompile fn_13563 (UIMiniMapWnd::SendMsg)
Batch #8992 by youko: 0 byte-identical, 1 confirmed by peer review.

- fn_13563 UIMiniMapWnd::SendMsg: logic confirmed by peer review

Peer-reviewed-by: eAthena, Lumen, KWDev, dori
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-31 23:49:11 +00:00

58 lines
1.7 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_DIALOGS_UIMINIMAPWND_H
#define RAGNAROK_SOURCE_UI_DIALOGS_UIMINIMAPWND_H
#include "UI/Window/UIFrameWnd.h"
#include <map>
#include <vector>
class UIBitmapButton;
class UIButton;
class UICheckBox;
class UIHeadsprButton;
struct MiniMapWndInfo;
struct UIButtonContext;
struct MiniMapMark {
/* 0000 */ int x;
/* 0004 */ int y;
};
class UIMiniMapWnd : public UIFrameWnd {
public:
UIMiniMapWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
void Slot11() override;
void Slot15(int width, int height) override;
void Paint() override;
void Slot25(int x, int y) override;
void ResetCursor(int x, int y) override;
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
void AddTownMarks();
int LoadMemos();
void UpdatePlayerHead();
/* 00B4 */ MiniMapWndInfo* m_saved;
/* 00B8 */ float scale;
/* 00BC */ float originX;
/* 00C0 */ float originY;
/* 00C4 */ UIBitmapButton* memoButtons[20];
/* 0114 */ int unknown_0114;
/* 0118 */ unsigned char dragging;
/* 0119 */ unsigned char unknown_0119[0x3];
/* 011C */ UICheckBox* unknown_011C;
/* 0120 */ UICheckBox* unknown_0120;
/* 0124 */ UICheckBox* unknown_0124;
/* 0128 */ UIHeadsprButton* m_playerHead;
/* 012C */ UIWindow* unknown_012C;
/* 0130 */ std::map<int, UIBitmapButton*> townButtons;
/* 0138 */ std::map<int, UIButton*> questButtons;
/* 0140 */ std::map<int, MiniMapMark> questMarks;
/* 0148 */ std::vector<MiniMapMark> partyMarks;
/* 0154 */ std::vector<MiniMapMark> guildMarks;
/* 0160 */ std::vector<MiniMapMark> warpMarks;
protected:
UIButtonContext* m_controls;
};
#endif