Decompile fn_12367 (UIPartyInvitationToWnd::SendMsg)
Batch #6970 by aDw: 0 byte-identical, 1 confirmed by peer review. - fn_12367 UIPartyInvitationToWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: eAthena, Landruca 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
44b1f521de
commit
7860da68a4
2 changed files with 27 additions and 0 deletions
|
|
@ -622,6 +622,29 @@ void UIPasswordWnd::Paint() {
|
|||
this->DrawBorder(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
// OFFSET: 0x009002D0
|
||||
// FUNCTION: fn_12367
|
||||
int UIPartyInvitationToWnd::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) {
|
||||
std::string name;
|
||||
name = this->m_edit->Text();
|
||||
this->m_edit->SelectAll();
|
||||
if (std::strlen(name.c_str()) != 0) {
|
||||
g_modeMgr.GetGameMode()->SendMsg(59, reinterpret_cast<int>(name.c_str()), 0, 0, 0);
|
||||
} else {
|
||||
g_windowMgr.SendNotice(1, reinterpret_cast<std::intptr_t>(LookupMessage(2072)), 0xFF, 0, 0, 0);
|
||||
}
|
||||
} else if (argument1 == 185) {
|
||||
g_windowMgr.CloseWindow(208);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00900A80
|
||||
// FUNCTION: fn_12369
|
||||
int UIPasswordWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
||||
class UIEditCtrl;
|
||||
struct UIButtonContext;
|
||||
struct WindowPlacement;
|
||||
|
||||
|
|
@ -24,6 +25,9 @@ protected:
|
|||
class UIPartyInvitationToWnd : public UIPartySettingWnd {
|
||||
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;
|
||||
|
||||
/* 00E0 */ UIEditCtrl* m_edit;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue