From e7aea7d755d075441b15f0fc35f34a0adbddcae4 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 15:27:07 +0000 Subject: [PATCH] Decompile fn_10617 (UIMenuIconWnd::Paint) Batch #17414 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_10617 UIMenuIconWnd::Paint: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, kyoshi, cremane, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Menu/UIMenuIconWnd.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/UI/Menu/UIMenuIconWnd.cpp b/Source/UI/Menu/UIMenuIconWnd.cpp index 5d1cfad94..d5cd23484 100644 --- a/Source/UI/Menu/UIMenuIconWnd.cpp +++ b/Source/UI/Menu/UIMenuIconWnd.cpp @@ -205,12 +205,14 @@ void UIMenuIconWnd::Paint() { this->closeButton->Enable(0); UIButton* toggle; - if (g_session.m_showMenuIcon) { - toggle = this->closeButton; - } else if (this->notifiedCommands.size() == 0) { - toggle = this->openButton; + if (!g_session.m_showMenuIcon) { + if (this->notifiedCommands.size() != 0) { + toggle = this->notificationOpenButton; + } else { + toggle = this->openButton; + } } else { - toggle = this->notificationOpenButton; + toggle = this->closeButton; } toggle->Enable(1);