s_checkButtonTypeId
global · ui
- Address
0xcf4ecc· 4 bytes, up to0xcf4ecf- Type
uint32_t- Meaning
- Holds the script type id of CheckButton, assigned on first use
- 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.