benilla-re systems structs docs

s_cases495190

global · ui

Address
0x4952d4 · 40 bytes, up to 0x4952fb
Type
void *[10]
Meaning
Holds the 10 case addresses of the switch in 0x495190
Confidence
inferred
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.