Decompile 3 functions in Source/UI/Acceptance/UIChooseSellBuyWnd.cpp, Source/UI/Dialogs/UIDisconnectedServerMsgWnd.h, ...
Batch #4738 by eAthena: 0 byte-identical, 3 confirmed by peer review. - fn_12337 UIComboBoxIDWnd::SendMsg: logic confirmed by peer review - fn_12338 UIComboBoxWnd::SendMsg: logic confirmed by peer review - fn_12340 UIDisconnectedServerMsgWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: alisonrag, Snow, Qwenkler3.8 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
83645a392b
commit
bce4341fac
3 changed files with 34 additions and 0 deletions
|
|
@ -1366,6 +1366,36 @@ void UIComboBoxWnd::Resize(int width, int height) {
|
|||
this->m_list->Invalidate();
|
||||
}
|
||||
|
||||
// OFFSET: 0x008F9570
|
||||
// FUNCTION: fn_12337
|
||||
int UIComboBoxIDWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) {
|
||||
if (this->m_owner && message == 39) {
|
||||
return this->m_owner->SendMsg(this, 39, argument1, argument2, argument3, argument4);
|
||||
}
|
||||
return this->m_list->SendMsg(sender, message, argument1, argument2, argument3, argument4);
|
||||
}
|
||||
|
||||
// OFFSET: 0x008F95B0
|
||||
// FUNCTION: fn_12338
|
||||
int UIComboBoxWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) {
|
||||
if (this->m_owner && message == 39) {
|
||||
return this->m_owner->SendMsg(this, 39, argument1, argument2, argument3, argument4);
|
||||
}
|
||||
return this->m_list->SendMsg(sender, message, argument1, argument2, argument3, argument4);
|
||||
}
|
||||
|
||||
// OFFSET: 0x008F97D0
|
||||
// FUNCTION: fn_12340
|
||||
int UIDisconnectedServerMsgWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) {
|
||||
if (message != 6) {
|
||||
return UIFrameWnd::SendMsg(sender, message, argument1, argument2, argument3, argument4);
|
||||
}
|
||||
if (argument1 == 184) {
|
||||
g_modeMgr.GetGameMode()->SendMsg(141, 0, 0, 0, 0);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// OFFSET: 0x008F6750
|
||||
// FUNCTION: fn_12322
|
||||
void UISayDialogWnd::Resize(int width, int height) {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
class UIDisconnectedServerMsgWnd : public UIFrameWnd {
|
||||
public:
|
||||
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;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ public:
|
|||
|
||||
void Resize(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;
|
||||
|
||||
void SetOwner(UIWindow* owner);
|
||||
};
|
||||
|
|
@ -19,9 +20,11 @@ public:
|
|||
class UIComboBoxIDWnd : public UIFrameWnd {
|
||||
public:
|
||||
/* 00B4 */ UIListBox* m_list;
|
||||
/* 00B8 */ UIWindow* m_owner;
|
||||
|
||||
void Resize(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;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue