diff --git a/Source/UI/EntryQueue/UIEntryQueueWnd.cpp b/Source/UI/EntryQueue/UIEntryQueueWnd.cpp index 6a70a4ff..015a2265 100644 --- a/Source/UI/EntryQueue/UIEntryQueueWnd.cpp +++ b/Source/UI/EntryQueue/UIEntryQueueWnd.cpp @@ -11,7 +11,7 @@ #include "UI/Text/UITextViewer.h" #include "UI/Window/UIWindowMgr.h" #include "UI/Window/WindowManagerWindows.h" - +#include "UI/Window/WindowDialogs.h" #include #include #include @@ -50,6 +50,8 @@ int UIEntryQueueHelpWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, UIEntryQueueListBox::UIEntryQueueListBox(UIWindowContext& windows, UIListBoxContext& list) : UIListBox(windows, list) { } +// OFFSET: 0x00BA43F0 + // OFFSET: 0x00BA4490 // FUNCTION: fn_19686 void UIEntryQueueListBox::AddEntry(const char* name, int value) { @@ -78,6 +80,8 @@ void UIEntryQueueListBox::Slot31(int x, int y) { } } +// OFFSET: 0x00BA4870 + // OFFSET: 0x00BA48E0 // FUNCTION: fn_19691 bool UIEntryQueueRequestWnd::Create() { @@ -201,6 +205,8 @@ int UIEntryQueueRequestWnd::SendMsg(UIWindow* sender, int message, std::intptr_t return 0; } +// OFFSET: 0x00BA5680 + // OFFSET: 0x00BA5700 // FUNCTION: fn_19698 bool UIEntryQueueStandByWnd::Create() { @@ -298,12 +304,28 @@ void UIEntryQueueStandByWnd::SetInfo(const char* queueName, int waiting, int ran } } +// OFFSET: 0x00BA6110 + // OFFSET: 0x00BA6410 // FUNCTION: fn_19706 int UIEntryQueueWnd::SelectedIndex() { return this->m_list->selected; } +// OFFSET: 0x00BA7AE0 +// FUNCTION: fn_19712 +bool UIEntryQueueWnd::ConfirmApply(const char* type) { + EntryQueueInfo* info = g_entryQueueMgr->current; + if (!info) { + return false; + } + + char text[0x104]; + std::memset(text, 0, sizeof(text)); + sprintf_s(text, sizeof(text), "%s %s", info->displayName, type); + return reinterpret_cast(&g_windowMgr)->Confirm(text, 2, false, false, 0, "Message", 280, 120, 0) == 187; +} + // OFFSET: 0x00BA7B90 // FUNCTION: fn_19713 void UIEntryQueueWnd::Slot11() { diff --git a/Source/UI/EntryQueue/UIEntryQueueWnd.h b/Source/UI/EntryQueue/UIEntryQueueWnd.h index 9e02dc24..c3a7279f 100644 --- a/Source/UI/EntryQueue/UIEntryQueueWnd.h +++ b/Source/UI/EntryQueue/UIEntryQueueWnd.h @@ -35,6 +35,7 @@ protected: class UIEntryQueueListBox : public UIListBox { public: UIEntryQueueListBox(UIWindowContext& windows, UIListBoxContext& list); + ~UIEntryQueueListBox() override; void Slot31(int x, int y) override; virtual void AddEntry(const char* name, int value); virtual int EntryValue(int index); @@ -44,6 +45,7 @@ public: class UIEntryQueueRequestWnd : public UIFrameWnd { public: + ~UIEntryQueueRequestWnd() override; void Slot18() override; void Slot19() override; void Paint() override; @@ -66,6 +68,7 @@ public: class UIEntryQueueStandByWnd : public UIFrameWnd { public: + ~UIEntryQueueStandByWnd() override; void Slot18() override; void Slot19() override; void Paint() override; @@ -90,8 +93,10 @@ public: class UIEntryQueueWnd : public UIFrameWnd { public: + ~UIEntryQueueWnd() override; void Slot11() override; int SelectedIndex(); + bool ConfirmApply(const char* type); /* 00B4 */ unsigned char unknown_00B4[0x40]; /* 00FC */ UIEntryQueueListBox* m_list;