benilla-re systems structs docs

FireUsableEvents

function · ui · orchestration

Address
0x4b31c0 · 144 bytes, up to 0x4b324f
Meaning
Refreshes the action bar flags, retests the reactive spells raising SPELL_ACTIVE, then signals SPELL_UPDATE_USABLE
Confidence
verified, proof one
Finding
ui/reactivespells#usable-refresh

Finding: Usable refresh in ui: reactive spells and the book reset

FireUsableEvents (0x4b31c0) runs 0x4e5c00 (ACTIONBAR_UPDATE_USABLE when an action slot changed), then retests every reactive entry with IsSpellUsable and stores the answer. An entry that went from 0 to 1 (a new entry starts at 0) raises COMBAT_TEXT_UPDATE with SPELL_ACTIVE and the spell's name, in list order; a fall to 0 is stored silently. It then signals SPELL_UPDATE_USABLE (263) on every path, and reads no form-bar entry. It has no timer; twelve functions call it:

callersite
CGGameUI::SelectTarget, CGGameUI::ReleaseTarget0x493892, 0x493a69
SetPlayerControl0x4958fc, 0x495910 (tail jumps)
OnComboPointsChanged, OnShapeshiftFormChanged0x5ddff0, 0x5de011
CGUnit_C::OnActivePlayerFlagsChanged0x5ff50e, 0x5ff51b
CGUnit_C::OnBytes1Byte3Changed0x5ff83a
CGUnit_C::OnHealthFieldChanged, OnPowerFieldChanged, OnAuraStateFieldChanged0x604848, 0x604876, 0x6048b6
StartGlobalCooldown, StartOrRemoveSpellCooldown0x6e2e85, 0x6e3076

The derivation is in the doc.

Callers 12

Callees 4

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