From 697c125ef8dca7cfbcc237cead14ecd4a8a0c0e6 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 05:01:11 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/CashShop/UICashShopWnd.cpp Batch #13082 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_09548 UICashShopWnd_CartItem::Slot28: byte-identical - fn_09549 UICashShopWnd_Item::Slot28: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/CashShop/UICashShopWnd.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/UI/CashShop/UICashShopWnd.cpp b/Source/UI/CashShop/UICashShopWnd.cpp index 35af541e..ee3b5dc9 100644 --- a/Source/UI/CashShop/UICashShopWnd.cpp +++ b/Source/UI/CashShop/UICashShopWnd.cpp @@ -669,21 +669,21 @@ void UICashShopWnd_Banner::Slot31(int, int) { // FUNCTION: fn_09548 void UICashShopWnd_CartItem::Slot28(int x, int y) { if (static_cast(x - 0x30) <= 0x70 && static_cast(y - 0xC) <= 0xB) { - x = 0; - y = -10; - this->ToScreen(x, y); - g_modeMgr.gameMode->ShowTooltip(this->m_item.unknown_0044.c_str(), x, y, 0xFFFFFFFFu, 0, 1); + int screenX = 0; + int screenY = -10; + this->ToScreen(screenX, screenY); + g_modeMgr.gameMode->ShowTooltip(this->m_item.unknown_0044.c_str(), screenX, screenY, 0xFFFFFFFFu, 0, 1); } } // OFFSET: 0x007D11D0 // FUNCTION: fn_09549 void UICashShopWnd_Item::Slot28(int x, int y) { - if (y < 0x18) { - x = 0; - y = -20; - this->ToScreen(x, y); - g_modeMgr.gameMode->ShowTooltip(this->m_item.unknown_0044.c_str(), x, y, 0xFFFFFFFFu, 0, 1); + if (y <= 0x17) { + int screenX = 0; + int screenY = -20; + this->ToScreen(screenX, screenY); + g_modeMgr.gameMode->ShowTooltip(this->m_item.unknown_0044.c_str(), screenX, screenY, 0xFFFFFFFFu, 0, 1); } }