![]() |
Kerbal Space Program
1.12.4
|
This is the main class that handles the color picker Color Area. More...
Public Member Functions | |
| void | AssignColor (ColorValues type, float value) |
| float | GetValue (ColorValues type) |
| void | SetColor (Color color) |
| Use to set the color but ONLY fire the onInternalValueChanged Event. Which only the Internal UI objects on the color picker listen to. More... | |
| void | ToggleModeSliders () |
| Toggles the sliders mode between RGB and HUE, Saturation and light More... | |
Public Attributes | |
| GameObject[] | hueModeSliders |
| HUE, Saturation and Light sliders reference. More... | |
| Button | modeButton |
| Button for changing modes between RGB and HUEa More... | |
| HSVChangedEvent | onHSVChanged = new HSVChangedEvent() |
| This Event is called whenever the Color is changed via CurrentColor property changes or via SetColor method. More... | |
| ColorChangedEvent | onInternalValueChanged = new ColorChangedEvent() |
| This Event is called whenever the Color is changed via SetColor Method. More... | |
| ColorChangedEvent | onValueChanged = new ColorChangedEvent() |
| This Event is called whenever the Color is changed via CurrentColor property changes. More... | |
| GameObject[] | rgbModeSliders |
| R,G,B sliders reference. More... | |
Properties | |
| float | B [get, set] |
| Color | CurrentColor [get, set] |
| Get or Set the Color. When Set the onValueChanged and onHSVChanged events are called. More... | |
| float | G [get, set] |
| float | H [get, set] |
| float | R [get, set] |
| float | S [get, set] |
| float | V [get, set] |
This is the main class that handles the color picker Color Area.
|
inline |
|
inline |
|
inline |
Use to set the color but ONLY fire the onInternalValueChanged Event. Which only the Internal UI objects on the color picker listen to.
| color |
|
inline |
Toggles the sliders mode between RGB and HUE, Saturation and light
| GameObject [] ColorPicker.hueModeSliders |
HUE, Saturation and Light sliders reference.
| Button ColorPicker.modeButton |
Button for changing modes between RGB and HUEa
| HSVChangedEvent ColorPicker.onHSVChanged = new HSVChangedEvent() |
This Event is called whenever the Color is changed via CurrentColor property changes or via SetColor method.
| ColorChangedEvent ColorPicker.onInternalValueChanged = new ColorChangedEvent() |
This Event is called whenever the Color is changed via SetColor Method.
| ColorChangedEvent ColorPicker.onValueChanged = new ColorChangedEvent() |
This Event is called whenever the Color is changed via CurrentColor property changes.
| GameObject [] ColorPicker.rgbModeSliders |
R,G,B sliders reference.
|
getset |
|
getset |
Get or Set the Color. When Set the onValueChanged and onHSVChanged events are called.
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
1.8.7