From 31944426201e8ba622eb2807a09a0fcd554c69cb Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 10:32:26 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Window/UIEscOptionWnd.cpp Batch #15835 by Yommy: 1 byte-identical, 1 confirmed by peer review. - fn_12735 UIEscOptionWnd::LayoutButtons: byte-identical - fn_12638 UIEscOptionWnd::OnCreate: logic confirmed by peer review (already on main) Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIEscOptionWnd.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/UI/Window/UIEscOptionWnd.cpp b/Source/UI/Window/UIEscOptionWnd.cpp index 0cbcdee2c..a3de9e231 100644 --- a/Source/UI/Window/UIEscOptionWnd.cpp +++ b/Source/UI/Window/UIEscOptionWnd.cpp @@ -50,17 +50,18 @@ void UIEscOptionWnd::LayoutButtons() { this->m_buttons[i]->Move(-100, -100); } + int titleHeight = this->m_titleHeight; if (this->m_mode == 0) { - this->Resize(this->geometry.width, this->m_titleHeight + 122); + this->Resize(this->geometry.width, titleHeight + 122); for (int i = 0; i < 5; ++i) { this->m_buttons[i]->Move(29, this->m_titleHeight + 5 + i * 23); } } else if (this->m_mode == 1) { - this->Resize(this->geometry.width, this->m_titleHeight + 53); + this->Resize(this->geometry.width, titleHeight + 53); this->m_buttons[6]->Move(29, this->m_titleHeight + 5); this->m_buttons[4]->Move(29, this->m_titleHeight + 28); } else if (this->m_mode == 2) { - this->Resize(this->geometry.width, this->m_titleHeight + 76); + this->Resize(this->geometry.width, titleHeight + 76); this->m_buttons[5]->Move(29, this->m_titleHeight + 5); this->m_buttons[6]->Move(29, this->m_titleHeight + 28); this->m_buttons[4]->Move(29, this->m_titleHeight + 51);