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.
This commit is contained in:
ragnarok-clanker 2026-11-12 10:29:23 +00:00
commit a8d374ba54

View file

@ -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);
}
}