Decompile fn_13756 (UIParaItemShopWnd::Slot32)

Batch #5575 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review.

- fn_13756 UIParaItemShopWnd::Slot32: logic confirmed by peer review

Peer-reviewed-by: willerthal, Lumen, Millenium
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-30 13:46:32 +00:00
commit ee7c9c97bf
2 changed files with 18 additions and 0 deletions

View file

@ -103,6 +103,23 @@ void UIParaItemPurchaseWnd::Slot25(int x, int y) {
}
}
// OFFSET: 0x009A99C0
// FUNCTION: fn_13756
void UIParaItemShopWnd::Slot32(int x, int y) {
const int previousHovered = this->unknown_00F8;
this->unknown_00F8 = this->GetItemIndexAt(x, y);
if (previousHovered != this->unknown_00F8) {
this->Invalidate();
}
ITEM_INFO item = this->GetItemByIndex(this->unknown_00F8);
if (item.unknown_0000[1] != 0) {
g_modeMgr.GetGameMode();
UIWindow* window = g_windowMgr.EnsureWindow(0xC);
window->SendMsg(nullptr, 0x18, reinterpret_cast<std::intptr_t>(&item), 0, 0, 0);
}
}
// OFFSET: 0x009A96B0
// FUNCTION: fn_13753
void __stdcall Nullsub344(int, int) {

View file

@ -17,6 +17,7 @@ public:
class UIParaItemShopWnd : public UIItemShopWnd {
public:
void Slot10(int x, int y, std::intptr_t value) override;
void Slot32(int x, int y) override;
};
class UIParaResultWnd : public UIItemBaseWnd {