CSimpleCheckbox::SetChecked
function · ui · orchestration
- Address
0x7854c0· 140 bytes, up to0x78554b- Meaning
- Stores the checked flag and shows the disabled-checked or checked texture to match
- 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 6
- CSimpleCheckbox::LoadXML ui
- CSimpleCheckbox::SetCheckedTexture ui
- CSimpleCheckbox::SetDisabledCheckedTexture ui
- CSimpleCheckbox::Enable ui
- CSimpleCheckbox::RunClick ui
- CheckButton::SetChecked ui
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.