From a8d374ba544cf0ba67e73dcbda702c41668b4364 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 10:29:23 +0000 Subject: [PATCH] Decompile fn_14482 (CUIGameItem::OnMouseHover) Batch #18154 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_14482 CUIGameItem::OnMouseHover: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Items/UIGameItem.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/UI/Items/UIGameItem.cpp b/Source/UI/Items/UIGameItem.cpp index aa727a12c..c673d618e 100644 --- a/Source/UI/Items/UIGameItem.cpp +++ b/Source/UI/Items/UIGameItem.cpp @@ -104,13 +104,15 @@ void CUIGameItem::OnMouseHover(int x, int y) { int screenX = x; int screenY = y - 20; this->ToScreen(screenX, screenY); - const std::uint32_t color = g_session.GetItemNameColor(this->itemInfo); - CMode* tooltip = g_modeMgr.gameMode; if (this->itemInfo.optionCount > 0) { - const std::string text = FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), this->name.c_str(), this->itemInfo.optionCount); - tooltip->ShowTooltip(text.c_str(), screenX, screenY, color, 0, 1); + CMode* tooltip = g_modeMgr.gameMode; + tooltip->ShowTooltip( + FormatOwnedString(LookupMessage(MSI_FAILED_MAIL_LIMIT_CNT), this->name.c_str(), this->itemInfo.optionCount).c_str(), + screenX, screenY, g_session.GetItemNameColor(this->itemInfo), 0, 1 + ); } else { - tooltip->ShowTooltip(this->name.c_str(), screenX, screenY, color, 0, 1); + CMode* tooltip = g_modeMgr.gameMode; + tooltip->ShowTooltip(this->name.c_str(), screenX, screenY, g_session.GetItemNameColor(this->itemInfo), 0, 1); } }