SetCursorMoney
function · ui · orchestration
- Address
0x494cc0· 87 bytes, up to0x494d16- Signature
void __fastcall (uint32_t amount)- Meaning
- Puts an amount of money on the cursor, or clears it for 0
- Confidence
- verified, proof one
- Finding
- ui/cursormoney#the-money-payload
Finding: The money payload in ui: the money cursor
0x494cc0(amount) puts money on the cursor, or takes it off for 0. It does nothing while the player has no
control, and nothing for 0 unless the cursor holds money. Otherwise it clears the cursor with ClearCursor(1, 1),
which signals CURSOR_UPDATE while the cursor is already empty. For a nonzero amount it then stores the amount, sets
the kind to 2, plays LOOTWINDOWCOINSOUND, sets the coin picture, and signals PLAYER_MONEY. No second
CURSOR_UPDATE follows, so a handler of that event sees no money on the cursor. Holding money and picking up
more first runs the money arm of the clear, so the event order is the sound, PLAYER_MONEY, CURSOR_UPDATE, then
the sound and PLAYER_MONEY of the new payload.
The derivation is in the doc.
Callers 3
Callees 4
- SndInterfacePlayInterfaceSound sound
- ClearCursor ui
- SetCursorPictureCoin ui
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.