rodecomp/Source/UI/Window/UIChangeNameWnd.h
ragnarok-clanker 4b419cdb14 Decompile fn_12743 (UIChangeNameWnd::SendMsg)
Batch #9033 by youko: 0 byte-identical, 1 confirmed by peer review.

- fn_12743 UIChangeNameWnd::SendMsg: logic confirmed by peer review

Peer-reviewed-by: vinnyamancio, dori, doczeira
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-01 00:02:04 +00:00

35 lines
993 B
C++

#ifndef RAGNAROK_SOURCE_UI_WINDOW_UICHANGENAMEWND_H
#define RAGNAROK_SOURCE_UI_WINDOW_UICHANGENAMEWND_H
#include "Client/Mode/CLoginMode.h"
#include "UI/Window/UIFrameWnd.h"
#include <cstdint>
struct UIButtonContext;
class UIBitmapButton;
class UIBitmapEditCtrl;
class UIChangeNameWnd : public UIFrameWnd {
public:
UIChangeNameWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
void Slot15(int width, int height) override;
void Paint() override;
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
int IsNameWithinLimit(std::string name, int limit);
protected:
UIButtonContext* m_controls;
public:
/* 00B4 */ UIBitmapButton* m_okButton;
/* 00B8 */ UIBitmapButton* m_cancelButton;
/* 00BC */ UIBitmapEditCtrl* m_edit;
/* 00C0 */ CharacterInfo* m_character;
/* 00C4 */ CharacterInfo m_info;
};
extern std::uint32_t g_renameGid;
extern char g_renameName[24];
#endif