Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
ColorPicker Class Reference

This is the main class that handles the color picker Color Area. More...

Inheritance diagram for ColorPicker:

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]
 

Detailed Description

This is the main class that handles the color picker Color Area.

Member Function Documentation

void ColorPicker.AssignColor ( ColorValues  type,
float  value 
)
inline
float ColorPicker.GetValue ( ColorValues  type)
inline
void ColorPicker.SetColor ( Color  color)
inline

Use to set the color but ONLY fire the onInternalValueChanged Event. Which only the Internal UI objects on the color picker listen to.

Parameters
color
void ColorPicker.ToggleModeSliders ( )
inline

Toggles the sliders mode between RGB and HUE, Saturation and light

Member Data Documentation

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.

Property Documentation

float ColorPicker.B
getset
Color ColorPicker.CurrentColor
getset

Get or Set the Color. When Set the onValueChanged and onHSVChanged events are called.

float ColorPicker.G
getset
float ColorPicker.H
getset
float ColorPicker.R
getset
float ColorPicker.S
getset
float ColorPicker.V
getset

The documentation for this class was generated from the following file: