GetAddOnEnableState
function · ui · primitive
- Address
0x51e470· 491 bytes, up to0x51e65a- Signature
int __fastcall (const char *name, const char *character, int fallback)- Meaning
- Returns an add-on's enable state 0, 1 or 2 for a character or all, with the DefaultState fallback
- Confidence
- verified, proof two
- Finding
- ui/addons#reading-the-enable-state
Finding: Reading the enable state in ui: add-ons
0x51e470(addon, character, fallback) answers 2 enabled, 1 mixed or 0 disabled from the nodes it
considers: the named character's, or all for null. A node with an entry counts its flag. A node
without one counts only with fallback: then the add-on's state over all nodes counts as enabled
when it is 2, or when it is 1 and DefaultState is enabled. With nothing counted the answer is
DefaultState, 2 or 0; otherwise 0 when none is enabled, 2 when all are, else 1. Setting a state
creates or changes the entry and marks the node; the in-game EnableAddOn and DisableAddOn set 2
and 0 for the current character, and EnableAllAddOns and DisableAllAddOns for every add-on.
The derivation is in the doc.
Callers 3
Callees 3
- LinkOrEnd5219d0 ui
- SStrCmpI storm
- SStrHashHT storm
Calls and jumps by a bare address, from tables/calls.tsv.