File Control/ColorPicker.lua
ColorPicker Control Registration and Methods
Functions
SetValue (self, color, isGUI, isUpdate) |
Update the saved var and the control state. |
UpdateText (self) |
Update the control text from control.text. |
Tables
Functions
- SetValue (self, color, isGUI, isUpdate)
-
Update the saved var and the control state.
Parameters
-
self: control
-
color: new color table {r=#, g=#, b=#, opacity=#} (opacity is optional)
-
isGUI: (boolean) called from a GUI interaction, passed to the callback
-
isUpdate: (boolean) called from control:Update(), passed to the callback
Usage:
control:SetValue(color)
- 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.ColorPicker
- ColorPicker Control Registration and Methods