From 3e798856680b1dc161c75dabfa7f8a4cf005d3af Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 14:43:13 +0000 Subject: [PATCH] Decompile fn_13191 (UIMultiIllustWnd::SendMsg) Batch #12381 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_13191 UIMultiIllustWnd::SendMsg: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Items/UIIllustWnd.cpp | 54 +++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/Source/UI/Items/UIIllustWnd.cpp b/Source/UI/Items/UIIllustWnd.cpp index 4fc82bad..061f361a 100644 --- a/Source/UI/Items/UIIllustWnd.cpp +++ b/Source/UI/Items/UIIllustWnd.cpp @@ -166,26 +166,34 @@ int UIMultiIllustWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argum } return 0; case 34: - if (argument1 == 10) { - this->m_closable = 0; - } else if (argument1 == 12) { - this->m_titled = 0; - this->geometry.currentAlpha = 128; - this->m_state = -1; - this->m_closable = 0; - } else if (argument1 == -1) { - this->m_titled = 0; - this->m_closable = 0; - this->DeleteChildren(); - return 0; - } else if (argument1 == -2) { - this->m_titled = 1; - return 0; - } else if (argument1 == 5) { - this->m_state = 5; - this->m_titled = 0; - this->m_closable = 0; - return 0; + switch (argument1) { + case 10: + this->m_closable = 0; + break; + case 12: + this->m_titled = 0; + this->geometry.currentAlpha = 128; + this->m_state = -1; + this->m_closable = 0; + break; + default: + if (argument1 == -1) { + this->m_titled = 0; + this->m_closable = 0; + this->DeleteChildren(); + return 0; + } + if (argument1 == -2) { + this->m_titled = 1; + return 0; + } + if (argument1 == 5) { + this->m_state = 5; + this->m_titled = 0; + this->m_closable = 0; + return 0; + } + break; } this->AddCloseButton("", 0)->Move(this->geometry.width - 16, 3); this->m_closable = 1; @@ -219,10 +227,10 @@ int UIMultiIllustWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argum return 0; } default: - if (this->m_closable == 0) { - return UIWindow::SendMsg(sender, message, argument1, argument2, argument3, argument4); + if (this->m_closable != 0) { + return UIFrameWnd::SendMsg(sender, message, argument1, argument2, argument3, argument4); } - return UIFrameWnd::SendMsg(sender, message, argument1, argument2, argument3, argument4); + return UIWindow::SendMsg(sender, message, argument1, argument2, argument3, argument4); } }