rodecomp/Source/UI/UIMacroUserInfoWnd.h
ragnarok-clanker f8d3e8622d Maintenance: Rename placeholder sub_XXXXXX functions to evidence-based names (Lua registration strings, log/error strings, packet ids
Batch #13412 by ragnarok-clanker: no function's compiled code changes; checked with 592 compiled unit(s), including every includer of Source/Client/Mode/CGameMode.h, Source/Client/Session.h, Source/Contents/Actors/GameActor.h, Source/Contents/CashEmotionMgr.h, Source/Contents/ClientItemLists.h, Source/Contents/ClientState.h, Source/Contents/Configuration/GameSettingsMgr.h, Source/Contents/Items/ItemInfo.h, Source/Contents/NavigationManager.h, Source/Contents/RenewQuestMgr.h, Source/Contents/ReputeMgr.h, Source/Contents/Schedule/TimeScheduler.h, Source/Contents/WorldView/WorldViewData.h, Source/UI/Buttons/UIDescriptRace.h, Source/UI/CashEmotion/UICashEmotionListWnd.h, Source/UI/Dialogs/UIPasswordWnd.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Edit/UIItemTagCtrl.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/Item/UIItemStoreSubWnd.h, Source/UI/Items/UISwapEquipmentWnd.h, Source/UI/Lists/UIChatHisBox.h, Source/UI/Lists/UITagListBox.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/Quest/UIRenewQuestUI.h, Source/UI/Rodex/UIRodexComposeWnd.h, Source/UI/Text/UIAchWnd.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/UIIngredientInfoWnd.h, Source/UI/UIMacroUserInfoWnd.h, Source/UI/Window/UINewSkillListWnd.h, Source/UI/Window/UIRegisterMgr.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/Utility/JsonCppLoader.h.
2026-11-06 16:30:12 +00:00

93 lines
2.7 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_UIMACROUSERINFOWND_H
#define RAGNAROK_SOURCE_UI_UIMACROUSERINFOWND_H
#include "UI/Window/UIFrameWnd.h"
#include <string>
#include <utility>
#include <vector>
class UIButton;
class UIScrollBar;
class UIMacroUserInfoWnd : public UIFrameWnd {
public:
UIMacroUserInfoWnd();
bool Slot08() override;
void Slot15(int width, int height) override;
void Paint() override;
int SendMsg(
UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4
) override;
/* 00B4 */ std::string m_name;
/* 00CC */ std::string m_message;
};
struct MacroReporterEntry {
MacroReporterEntry() = default;
MacroReporterEntry(std::string name, int id, short unknown_001C);
/* 0000 */ std::string name;
/* 0018 */ int id;
/* 001C */ short unknown_001C;
};
struct MacroReporterState {
/* 0000 */ int width;
/* 0004 */ int height;
/* 0008 */ int x;
/* 000C */ int y;
/* 0010 */ unsigned char unknown_0010;
/* 0011 */ bool unknown_0011;
/* 0014 */ std::vector<MacroReporterEntry> entries;
};
class UIMacroReporterWnd : public UIFrameWnd {
public:
UIMacroReporterWnd();
void Slot11() override;
void Slot15(int width, int height) override;
void Slot19() override;
void Paint() override;
void Slot25(int x, int y) override;
void Slot31(int x, int y) override;
void Slot35(int delta) 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 UpdateScrollBar();
bool ValidateTarget(unsigned char notify);
bool ValidateNames(unsigned char notify);
void AddPickedActor(MacroReporterEntry* entry);
void AddActorByAID(int aid);
void AddActorRow(int aid, std::string name);
std::string EllipsizeText(int maxWidth, const char* text, int font, int height, unsigned char bold);
/* 00B4 */ std::vector<std::pair<UIButton*, UIButton*>> m_rows;
/* 00C0 */ UIScrollBar* m_scrollBar;
/* 00C4 */ bool m_scrollable;
/* 00C8 */ int unknown_00C8;
/* 00CC */ int m_firstRow;
/* 00D0 */ int m_visibleRows;
/* 00D4 */ UIWindow* unknown_00D4;
/* 00D8 */ UIButton* m_reportButton;
/* 00DC */ UIWindow* m_tabs[4];
/* 00EC */ int m_mode;
/* 00F0 */ UIWindow* m_edit;
/* 00F4 */ int unknown_00F4;
/* 00F8 */ int unknown_00F8;
/* 00FC */ MacroReporterState* m_state;
/* 0100 */ std::vector<MacroReporterEntry> m_entries;
/* 010C */ bool unknown_010C;
/* 0110 */ std::vector<UIButton*> m_removedRows;
/* 011C */ UIWindow* m_fields[10];
/* 0144 */ std::string m_names[10];
/* 0234 */ std::string m_target;
/* 024C */ bool m_namesValid;
/* 024D */ bool m_targetValid;
/* 0250 */ int m_nameCount;
};
#endif