benilla-re systems structs docs

ClearCursor

function · ui · primitive

Address
0x495190 · 321 bytes, up to 0x4952d0
Signature
void __fastcall (uint32_t unlock, uint32_t signalMoney)
Meaning
Drops the cursor's payload by kind and signals CURSOR_UPDATE
Confidence
verified, proof one
Finding
ui/cursor#clearing-the-cursor

Finding: Clearing the cursor in ui: the cursor payload

0x495190(unlock, signalMoney) drops whatever the cursor holds, by kind. It always clears the pending gift-wrap register, restores the shown picture (0x523bf0), then runs the kind's arm. Kind 1 releases the item lock when unlock is nonzero and a GUID is held, plays the item put-down sound, and zeroes the GUID, container GUID and source slot. Kind 2 zeroes the money, plays LOOTWINDOWCOINSOUND, and signals PLAYER_MONEY when signalMoney is nonzero. Kinds 5, 6, 7 and 9 play the put-down sound for the display id and zero the preview globals; kinds 3, 4, 8 and 10 zero their word. Kinds 3 to 10 then play INTERFACESOUND_CURSORDROPOBJECT; kinds 1 and 2 do not.

The derivation is in the doc.

Callers 52

Callees 11

Calls and jumps by a bare address, from tables/calls.tsv.