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:
parent
eff783d8ce
commit
ee7c9c97bf
2 changed files with 18 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue