From e45593e272583cae0e8bf45968ebe82f832ac1cb Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 12:37:09 +0000 Subject: [PATCH] Decompile 4 functions in Source/UI/Acceptance/UIChooseSellBuyWnd.cpp Batch #15165 by Yommy: 4 byte-identical, 0 confirmed by peer review. - fn_12154 UIMenuWnd::Move: byte-identical - fn_12360 UINoticeConfirmWnd::SendMsg: byte-identical - fn_12387 UIToolTipWnd::SendMsg: byte-identical - fn_12398 UIPasswordWnd::Show: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Acceptance/UIChooseSellBuyWnd.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp index dcbe3d7e5..e6076f33e 100644 --- a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp +++ b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp @@ -2468,7 +2468,7 @@ void UIMenuWnd::Move(int x, int y) { if (x > g_renderer->viewport.width - this->geometry.width) { x += -2 - this->geometry.width; } - this->geometry.Move(x, y); + UIWindow::Move(x, y); } // OFFSET: 0x008DB030 @@ -6062,7 +6062,7 @@ void UIItemIdentifyWnd::UpdateScroll() { // OFFSET: 0x00909CD0 // FUNCTION: fn_12398 void UIPasswordWnd::Show(int visible) { - this->geometry.Show(visible); + this->geometry.visible = visible; } // OFFSET: 0x00907610 @@ -6072,8 +6072,11 @@ int UIToolTipWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1 return UIFrameWnd::SendMsg(sender, message, argument1, argument2, argument3, argument4); } - if (argument1 == ID_OK || argument1 == ID_CANCEL) { + switch (argument1) { + case ID_OK: + case ID_CANCEL: g_windowMgr.Schedule(this); + break; } return 0; @@ -6137,10 +6140,13 @@ int UINoticeConfirmWnd::SendMsg( ) { switch (message) { case UM_COMMAND: { - if (argument1 == ID_OK) { + switch (argument1) { + case ID_OK: g_modeMgr.gameMode->SendMsg(this->m_event, 0, 0, 0, 0); - } else if (argument1 == ID_CANCEL) { + break; + case ID_CANCEL: g_modeMgr.gameMode->SendMsg(MM_QUIT, 0, 0, 0, 0); + break; } return 0;