From 1e30ce81ff3aacb255e4bfb2e9ff3c59f07416ed Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 23:17:52 +0000 Subject: [PATCH] Decompile fn_10860 (UIEditCtrl::Slot28) Batch #12641 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_10860 UIEditCtrl::Slot28: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Edit/UIEditCtrl.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Source/UI/Edit/UIEditCtrl.cpp b/Source/UI/Edit/UIEditCtrl.cpp index 50721163..c3080bc4 100644 --- a/Source/UI/Edit/UIEditCtrl.cpp +++ b/Source/UI/Edit/UIEditCtrl.cpp @@ -301,14 +301,10 @@ void UIEditCtrl::Slot28(int x, int y) { this->Slot27(x, y); if (!this->tooltip.empty()) { - int left = 10, top = -20; - - for (const UIWindow* window = this; window; window = window->parent) { - left += window->geometry.x; - top += window->geometry.y; - } - - static_cast(g_charViewMode)->ShowTooltip(this->tooltip.c_str(), left, top, -1, false, true); + x = 10; + y = -20; + this->ToScreen(x, y); + g_modeMgr.gameMode->ShowTooltip(this->tooltip.c_str(), x, y, -1, false, true); } }