Button::SetButtonState
function · ui · primitive
- Address
0x780270· 273 bytes, up to0x780380- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Button method SetButtonState, its pair in the table 0x879d00
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/button#button-state-from-lua
Finding: Button state from Lua in ui: Button and CheckButton
SetButtonState(state, lock) takes DISABLED, NORMAL or PUSHED, ignoring case, and sets that
state directly through slot 0x9c, with the lock read as a flag (default 0); any other name raises
Usage: %s:SetButtonState("state", lock). It bypasses enabling, so DISABLED this way neither
runs the leave notify nor turns the highlight off. GetButtonState returns the state's name.
LockHighlight and UnlockHighlight lock the HIGHLIGHT layer on or release it; the button then
refreshes its label font. A release leaves the layer on while the mouse is over the button.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- GetScriptFlagArg ui
- lua_settop lua
- lua_type lua
- lua_isstring lua
- lua_tostring lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
- ParseButtonState ui
Calls and jumps by a bare address, from tables/calls.tsv.