FrameScriptRegisterEvent
function · ui · orchestration
- Address
0x702140· 306 bytes, up to0x702271- Meaning
- Adds an object to the listeners of an event name and records the event index
- Confidence
- verified, proof two
- Finding
- ui/script#registering-for-an-event
Finding: Registering for an event in ui: the script layer and events
Registering an object for an event name compares the name, ignoring case, with every record. For a match where the object is already a listener it answers 1 at once; otherwise it links a listener node at the head of the record's list and appends the record's index to the object's array. An unknown name changes nothing. Unregistering walks the object's array from the end, freeing its node in each record of that name and removing the index. Registering for all events links the object into every record it is not already in; unregistering from all frees every node of the object and empties its array.
The derivation is in the doc.
Callers 1
Callees 3
- ReallocUint32Array core
- SStrCmpI storm
- NewEventListenerNode ui
Calls and jumps by a bare address, from tables/calls.tsv.