File Control/Slider.lua
Slider Control Registration and Methods
Functions
SetMinMaxValues (self, minValue, maxValue) |
Update the min and max ranges of the slider. |
SetValue (self, value, isGUI, isUpdate) |
Update the saved var and the control state. |
Tables
Functions
- SetMinMaxValues (self, minValue, maxValue)
-
Update the min and max ranges of the slider. Updates control.minValue and control.maxValue and the min/max text if control.minText and control.maxText are undefined.
Parameters
-
self: slider control
-
minValue: (number) minimum value
-
maxValue: (number) maximum value
Usage:
control:SetMinMaxValues(minValue, maxValue)
- SetValue (self, value, isGUI, isUpdate)
-
Update the saved var and the control state.
Parameters
-
self: slider control
-
value: (number) 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)
Tables
- Portfolio.Control.Slider
- Slider Control Registration and Methods