benilla-re systems structs docs

ParseButtonState

function · ui · orchestration

Address
0x780390 · 106 bytes, up to 0x7803f9
Meaning
Maps DISABLED, NORMAL or PUSHED, ignoring case, to a button state
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 1

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