From e5997dbaa14edfc3ac76efa6202db340f1909d09 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 16:56:13 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Window/UIControl.cpp Batch #18621 by eAthena: 2 byte-identical, 0 confirmed by peer review. - fn_14028 CUIVScrollBar::SetOnChange: byte-identical - fn_14697 CUITitleBar::SetSecondButton: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Window/UIControl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/UI/Window/UIControl.cpp b/Source/UI/Window/UIControl.cpp index b339a65b3..79c3f1e8d 100644 --- a/Source/UI/Window/UIControl.cpp +++ b/Source/UI/Window/UIControl.cpp @@ -383,7 +383,7 @@ void CUIVScrollBar::SetTotal(int value) { // OFFSET: 0x009D3120 // FUNCTION: fn_14028 void CUIVScrollBar::SetOnChange(std::function handler) { - AssignHandler(this->onChange, handler); + this->onChange = handler; } // OFFSET: 0x009F2E80 @@ -1353,8 +1353,9 @@ void CUITitleBar::SetSecondButton(CUIButton* button) { const char* behavior = nullptr; if (g_session.m_hotkeyScript->Call("GetBeHaviorOfWindow", "d>s", this->parent->geometry.id, &behavior) && behavior) { + CUIButton* second = static_cast(this->secondButton); const std::string text = behavior; - static_cast(this->secondButton)->tooltip = text; + second->tooltip = text; } }