benilla-re systems structs docs

CheckButton::SetChecked

function · ui · primitive

Address
0x799bf0 · 163 bytes, up to 0x799c92
Signature
int __fastcall (lua_State *L)
Meaning
Implements the CheckButton method SetChecked, its pair in the table 0x87bf74
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/button#checkbutton

Finding: CheckButton in ui: Button and CheckButton

SetChecked(checked, force) stores the flag unless unchanged and not forced, hides both checked textures and, when checked, shows the disabled one if the button is disabled and has it, else the checked one. Enabling or disabling refreshes this. A click toggles the check before running the button's click, so Click() toggles even a disabled check button, which then runs no script. A double click does not toggle: the second release of a quick pair runs OnDoubleClick alone, so the pair toggles once. Lua's SetChecked reads its argument as a flag with default 1, so no argument checks; GetChecked returns 1 or nil.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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