Decompile fn_12751 (UIPartyBookingHelpWnd::SendMsg)

Batch #6025 by System4z: 0 byte-identical, 1 confirmed by peer review.

- fn_12751 UIPartyBookingHelpWnd::SendMsg: logic confirmed by peer review

Peer-reviewed-by: eAthena, superintelligence
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-30 18:27:00 +00:00
commit 6915a703cf
2 changed files with 14 additions and 0 deletions

View file

@ -2,6 +2,7 @@
#include "Contents/MessageTable.h"
#include "UI/Buttons/UIButton.h"
#include "UI/Window/UIWindowMgr.h"
// OFFSET: 0x0092D630
// FUNCTION: fn_12670
@ -9,3 +10,15 @@ void UIPartyBookingHelpWnd::Paint() {
this->DrawTitleBar(this->m_controls->fonts, this->m_controls->locale, true, LookupMessage(1716), 0);
this->DrawPanelBackground(17, 0, "");
}
// OFFSET: 0x00938810
// FUNCTION: fn_12751
int UIPartyBookingHelpWnd::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 == 201) {
g_windowMgr.CloseWindow(173);
}
return 0;
}

View file

@ -8,6 +8,7 @@ struct UIButtonContext;
class UIPartyBookingHelpWnd : 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;
protected:
UIButtonContext* m_controls;