rodecomp/Source/UI/EntryQueue/UIEntryQueueWnd.h
ragnarok-clanker 14a432d922 Maintenance: [forced, user-approved] Family F3: remove WindowDialogs, WindowResponseRecorder, UIMessageBoxContext, UIEntryQueueContex
Batch #10232 by ragnarok-clanker: forced by an admin (22 lower score(s), 263 changed function(s)); checked with 562 compiled unit(s), including every includer of Source/Client/Mode/CLoginMode.h, Source/Client/ReplayPacketRecorder.h, Source/Client/Session.h, Source/Contents/NavigationManager.h, Source/UI/Acceptance/UIJoinPartyAcceptWnd.h, Source/UI/EntryQueue/UIEntryQueueWnd.h, Source/UI/Guild/UIAgitWnd.h, Source/UI/Item/UIParaItemShopWnd.h, Source/UI/Items/UIItemRepairWnd.h, Source/UI/Items/UIMakeTargetListWnd.h, Source/UI/Items/UIMakeTargetProcessWnd.h, Source/UI/Items/UIWeaponRefineWnd.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UIMerInfoWnd.h, Source/UI/Window/UIMessageBox.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UIPayConfirmWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIShowWarpWnd.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/WindowDialogs.h.
2026-11-03 10:23:36 +00:00

128 lines
3.6 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_ENTRYQUEUE_UIENTRYQUEUEWND_H
#define RAGNAROK_SOURCE_UI_ENTRYQUEUE_UIENTRYQUEUEWND_H
#include "Contents/UserData/NormalItemSlots.h"
#include "UI/Lists/UIListBox.h"
#include "UI/Window/UIFrameWnd.h"
#include <cstddef>
#include <cstdint>
#include <map>
#include <string>
class UIBitmapButton;
class UIStaticText;
struct EntryQueueInfo;
class UITextViewer;
class UIEntryQueueHelpWnd : public UIFrameWnd {
public:
UIEntryQueueHelpWnd();
void Slot15(int width, int height) override;
void Slot18() override;
void Slot19() 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;
protected:
void* unknown_entryQueue;
public:
/* 00B4 */ UITextViewer* m_viewer;
/* 00B8 */ UIBitmapButton* m_close;
};
class UIEntryQueueListBox : public UIListBox {
public:
UIEntryQueueListBox();
~UIEntryQueueListBox() override;
void Slot31(int x, int y) override;
virtual void AddEntry(const char* name, int value);
virtual int EntryValue(int index);
/* 00D4 */ std::map<std::string, int> m_entries;
};
class UIEntryQueueRequestWnd : public UIFrameWnd {
public:
UIEntryQueueRequestWnd();
~UIEntryQueueRequestWnd() override;
void Slot18() override;
void Slot19() 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;
bool Create();
protected:
void* unknown_entryQueue;
public:
/* 00B4 */ UITextViewer* m_viewer;
/* 00B8 */ UIBitmapButton* m_ok;
/* 00BC */ UIBitmapButton* m_cancel;
/* 00C0 */ unsigned m_interval;
/* 00C4 */ unsigned m_elapsed;
/* 00C8 */ unsigned m_delta;
/* 00CC */ unsigned m_lastTick;
/* 00D0 */ UIStaticText* m_countdown;
};
class UIEntryQueueStandByWnd : public UIFrameWnd {
public:
UIEntryQueueStandByWnd();
~UIEntryQueueStandByWnd() override;
void Slot18() override;
void Slot19() 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;
bool Create();
void SetInfo(const char* queueName, int waiting, int ranking);
protected:
void* unknown_entryQueue;
public:
/* 00B4 */ std::string m_queueName;
/* 00CC */ int m_waiting;
/* 00D0 */ int m_ranking;
/* 00D4 */ UITextViewer* m_viewer;
/* 00D8 */ UIBitmapButton* m_cancel;
/* 00DC */ UIBitmapButton* m_close;
/* 00E0 */ char m_queueText[0x104];
/* 01E4 */ char m_waitingText[0x104];
/* 02E8 */ char m_rankingText[0x104];
};
class UIEntryQueueWnd : public UIFrameWnd {
public:
UIEntryQueueWnd();
~UIEntryQueueWnd() override;
void Slot11() override;
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 SelectedIndex();
void SelectQueue(EntryQueueInfo* info);
bool ConfirmApply(const char* type);
/* 00BC */ unsigned char unknown_00BC[0x8];
/* 00C4 */ UIStaticText* m_labels[7];
/* 00E0 */ UIStaticText* m_values[7];
/* 00FC */ UIEntryQueueListBox* m_list;
/* 0100 */ EntryQueueWndInfo* saved;
protected:
void* unknown_entryQueue;
void* unknown_listContext;
UIBitmapButton* m_applyButtons[3];
UIBitmapButton* m_helpButton;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(offsetof(UIEntryQueueWnd, m_labels) == 0xC4);
static_assert(offsetof(UIEntryQueueWnd, m_values) == 0xE0);
static_assert(offsetof(UIEntryQueueWnd, m_list) == 0xFC);
static_assert(offsetof(UIEntryQueueWnd, saved) == 0x100);
#endif
#endif