SetCursorPetAction
function · ui · primitive
- Address
0x494e20· 285 bytes, up to0x494f3c- Signature
void __thiscall (void *this)- Meaning
- Puts a pet action on the cursor with its icon as the picture
- Confidence
- verified, proof one
- Finding
- ui/cursor#payload-pictures-by-kind
Finding: Payload pictures by kind in ui: the cursor payload
The spell setter 0x494d20(spell) takes the picture from the spell: the attack icon (0x4e6870) when its first
effect is 0x4e, the ranged icon (0x4e6990) when its attributes carry the ranged flags, else the name of its
spell icon record (ui/actionbar#attack-and-ranged-icons). It does nothing for a spell with no such name. The macro
setter 0x494f80(id) returns only for an id with no macro (ui/macros#macro-order). The
stabled pet setter 0x495010(index) reads a stable index, where a negative one means the summoned pet, and needs a
creature family row with an icon. The pet action setter 0x494e20(word) uses the spell's icon for the five spell
kinds and the global named PET_<name>_TEXTURE for the two command kinds.
The derivation is in the doc.
Callers 3
Callees 8
- SndInterfacePlayInterfaceSound sound
- ClearCursor ui
- GetPetReactionToken ui
- GetPetCommandToken ui
- CGPetInfo::ShowGrid ui
- SetCursorPictureFromPath ui
- SStrPrintf storm
- FrameScript_GetText ui
Calls and jumps by a bare address, from tables/calls.tsv.