benilla-re systems structs docs

ButtonStateToName

function · ui · orchestration

Address
0x780240 · 35 bytes, up to 0x780262
Meaning
Maps a button state to DISABLED, NORMAL, PUSHED or UNKNOWN
Confidence
verified, proof one
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 1

Callees 0

None by a direct call or jump.

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