Decompile fn_19712 (UIEntryQueueWnd::ConfirmApply)
Batch #5302 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_19712 UIEntryQueueWnd::ConfirmApply: logic confirmed by peer review Peer-reviewed-by: alisonrag, Bruwuno, SapitoSucio Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
e4633483ee
commit
869a431bdf
2 changed files with 28 additions and 1 deletions
|
|
@ -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 <cstdio>
|
||||
#include <cstring>
|
||||
#include <utility>
|
||||
|
|
@ -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<WindowDialogs*>(&g_windowMgr)->Confirm(text, 2, false, false, 0, "Message", 280, 120, 0) == 187;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00BA7B90
|
||||
// FUNCTION: fn_19713
|
||||
void UIEntryQueueWnd::Slot11() {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue