Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 838 Bytes

checkbox.md

File metadata and controls

52 lines (33 loc) · 838 Bytes

Checkbox

A checkbox that displays the "✓" character when checked.

Functions
Getters

bool Element:GetChecked()
Returns whether or not the Checkbox is checked.


Setters

void Element:SetChecked(bool Checked)
Sets if the Checkbox is checked or not.
This will call :OnValueChanged.




Hooks

void Element:OnValueChanged(bool OldValue, bool NewValue)
Calls when the check state of the Checkbox changes.




Variables

While you can modify these variables to bypass accessors, it may cause undesired behavior.

m_bChecked: Whether or not the Checkbox is checked.