→Examples of use
| Line 8: | Line 8: | ||
ColorPickerFrame.func(); | ColorPickerFrame.func(); | ||
--Called on | --Called on changing the color wheel | ||
ColorPickerFrame.opacityFunc(); | ColorPickerFrame.opacityFunc(); | ||
| Line 16: | Line 16: | ||
--Called on hitting CANCEL button OR pressing ESCAPE | --Called on hitting CANCEL button OR pressing ESCAPE | ||
These functions can be specified by you to do something. The best example is | These functions can be specified by you to do something. The best example is setting some variables to the selected color as it changes. Check the following code: | ||
| Line 53: | Line 53: | ||
ColorPickerFrame:SetColorRGB(R, G, B); | ColorPickerFrame:SetColorRGB(R, G, B); | ||
Set R, G, and B to the ColorWheel's colors on | Set R, G, and B to the ColorWheel's colors on changing the selected color | ||
ColorPickerFrame.func = MY_COLOR_FUNCTION | ColorPickerFrame.func = MY_COLOR_FUNCTION | ||