benilla-re systems structs docs

IsTypeId785050

function · ui · orchestration

Address
0x785050 · 53 bytes, up to 0x785084
Signature
uint32_t __stdcall (uint32_t id)
Meaning
Answers 1 for the CheckButton, Button, Frame and Region type ids and 0 for any other
Confidence
verified, proof one
Finding
ui/button#button-method-helper-and-type-test

Finding: Button method helper and type test in ui: Button and CheckButton

0x781bc0(L, state) is the shared part of GetNormalTexture, GetPushedTexture and GetDisabledTexture. It assigns the Button type id on first use, requires a table at argument 1 (Attempt to find 'this' in non-table object (used '.' instead of ':' ?)), reads its element 0 as the object (Attempt to find 'this' in non-framescript object when nil), checks the type through slot 4 (Wrong object type for member function) and pushes the Lua table of the state texture at +0x4b8 + state·4, making it first when needed, or nil without a texture. 0x785050(id), slot 4 of the check button, answers 1 for the CheckButton, Button, Frame and Region type ids (0xcf4ecc, 0xcf4d88, 0xcf0c10, 0xcf0c3c).

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 0

None by a direct call or jump.

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