CSimpleCheckbox::Enable
function · ui · orchestration
- Address
0x785490· 36 bytes, up to0x7854b3- Meaning
- Enables or disables the button, then refreshes the check
- Confidence
- verified, proof one
- 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 2
Calls and jumps by a bare address, from tables/calls.tsv.