ButtonGetStateTextureTable
function · ui · orchestration
- Address
0x781bc0· 242 bytes, up to0x781cb1- Signature
uint32_t __fastcall (lua_State *L, uint32_t state)- Meaning
- Pushes the Lua table of a state texture of the Button at argument 1, or nil, raising on a wrong self
- 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 3
Callees 7
- lua_settop lua
- lua_type lua
- lua_touserdata lua
- lua_pushnil lua
- lua_rawgeti lua
- luaL_error lua
- LockScriptObject ui
Calls and jumps by a bare address, from tables/calls.tsv.