File Control/Checkbox.lua
Checkbox Control Registration and Methods
Functions
SetValue (self, value, isGUI, isUpdate) |
Update the saved var and the control state. |
UpdateDependents (self) |
Update the dependant controls. |
UpdateText (self) |
Update the control text from control.text. |
Tables
Functions
- SetValue (self, value, isGUI, isUpdate)
-
Update the saved var and the control state. Calls control:UpdateDependents() if changed.
Parameters
-
self: checkbox control
-
value: ("1" or "0") new value
-
isGUI: (boolean) called from a GUI interaction, passed to the callback
-
isUpdate: (boolean) called from control:Update(), passed to the callback
Usage:
control:SetValue(value)
- UpdateDependents (self)
-
Update the dependant controls. From control.dependentControlsByID by control id or from control.dependentControlsByID by frame.
Parameters
Usage:
control:UpdateDependents()
- UpdateText (self)
-
Update the control text from control.text. Adjust the checkbox HitRect to accept OnEnter and OnClick over the text.
Parameters
Usage:
control:UpdateText()
Tables
- Portfolio.Control.Checkbox
- Checkbox Control Registration and Methods