diff --git a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp index bff67da8..160f04aa 100644 --- a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp +++ b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp @@ -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(name.c_str()), 0, 0, 0); + } else { + g_windowMgr.SendNotice(1, reinterpret_cast(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) { diff --git a/Source/UI/Party/UIPartySettingWnd.h b/Source/UI/Party/UIPartySettingWnd.h index 17af69f6..d553943f 100644 --- a/Source/UI/Party/UIPartySettingWnd.h +++ b/Source/UI/Party/UIPartySettingWnd.h @@ -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