ClearCursor
function · ui · primitive
- Address
0x495190· 321 bytes, up to0x4952d0- 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
- Script::ClearCursor ui
- Script::EquipCursorItem ui
- Script::DeleteCursorItem ui
- Script::DropItemOnUnit ui
- EndLootWindow ui
- SelectObjectByClick ui
- WorldButtonHook ui
- CancelTargetingOrRotatePlacement ui
- WorldClickGround ui
- WorldClickObject ui
- WorldClickNothing ui
- CGGameUI::SetCursorItem ui
- SetCursorMoney ui
- SetCursorSpell ui
- ClearCursorIfSpell ui
- SetCursorPetAction ui
- ClearCursorPetAction ui
- SetCursorMacro ui
- ClearCursorMacro ui
- SetCursorStablePet ui
- 0x4950d0 ui
- CGGameUI::SetCursorVirtualItem ui
- SignalDeathState ui
- CancelCastAndClearCursor ui
- Script::ClickSendMailItemButton ui
- PickupBookSpell ui
- CastBookSpell ui
- Script::PickupPetAction ui
- Script::TogglePetAutocast ui
- Script::CastPetAction ui
- CGTradeInfo::SetTradePartner ui
- TradeInfoAddCursorItem ui
- Script::ClickTradeButton ui
- Script::ClickTargetTradeButton ui
- Script::AddTradeMoney ui
- ClickInventorySlot ui
- UseInventorySlot ui
- PickupBag ui
- PutItemInContainer ui
- Script::ClickStablePet ui
- Script::ClickAuctionSellItemButton ui
- PlaceOnActionSlot ui
- Script::PickupContainerItem ui
- Script::SplitContainerItem ui
- Script::UseContainerItem ui
- CloseMerchantWindow ui
- Script::PickupMerchantItem ui
- Script::BuyMerchantItem ui
- Script::ShowRepairCursor ui
- CGItem_C::Deactivate objectlayer
- CGPlayer_C::SwapItems objectlayer
- CGPlayer_C::AutoEquipCursorItem objectlayer
Callees 11
- SndInterfacePlayItemSound sound
- PlayItemDisplaySound sound
- SndInterfacePlayInterfaceSound sound
- ClntObjMgrObjectPtr objectlayer
- UnlockItem ui
- CGPetInfo::HideGrid ui
- CGActionBar::HideGrid ui
- RestoreCursorModePicture ui
- EndWrapItem objectlayer
- IsWrappingItem objectlayer
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.