From 311285b7d693a1165cc55cd7e15814fa5572f86f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 00:28:47 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Window/UIHotKeyWnd.cpp Batch #10968 by dori: 0 byte-identical, 2 confirmed by peer review. - fn_12708 UIHotKeyWnd::ShowHotkeyTooltip: logic confirmed by peer review - fn_12710 UISerachStoreInfoWnd::Slot28: logic confirmed by peer review Peer-reviewed-by: kyoshi, Toshiro, cremane, Yommy, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIHotKeyWnd.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/UI/Window/UIHotKeyWnd.cpp b/Source/UI/Window/UIHotKeyWnd.cpp index 711ecb86..e023c3d2 100644 --- a/Source/UI/Window/UIHotKeyWnd.cpp +++ b/Source/UI/Window/UIHotKeyWnd.cpp @@ -1,4 +1,5 @@ #include "Client/Mode/CMode.h" +#include "Client/Mode/ModeMgr.h" #include "Render/Text/FontCache.h" #include "Render/Text/TextContext.h" #include "UI/Window/UIHotKeyWnd.h" @@ -370,7 +371,7 @@ void UIHotKeyWnd::ShowHotkeyTooltip(int x, int y) { const HotkeyEntry entry = this->GetHotkey(this->m_tab, index + (this->m_page * 9 - 9) * 4, true); if (!entry.info.text.empty()) { - static_cast(g_charViewMode)->ShowTooltip(entry.info.text.c_str(), screenX, screenY, 0xFFFFFFFF, 0, 1); + g_modeMgr.gameMode->ShowTooltip(entry.info.text.c_str(), screenX, screenY, 0xFFFFFFFF, 0, 1); } } @@ -397,14 +398,14 @@ void UISerachStoreInfoWnd::Slot28(int x, int y) { text = text.substr(0, end); } - static_cast(g_charViewMode)->SetCursorAction(2); + g_modeMgr.gameMode->SetCursorAction(2); } } else { text = item.DisplayName(0); } if (text.size() != 0) { - static_cast(g_charViewMode)->ShowTooltip(text.c_str(), screenX, screenY, g_session.GetItemNameColor(item), 0, 1); + g_modeMgr.gameMode->ShowTooltip(text.c_str(), screenX, screenY, g_session.GetItemNameColor(item), 0, 1); } }