Kerbal Space Program
1.12.4
|
Public Types | |
enum | colorIndices { colorIndices.off, colorIndices.red, colorIndices.yellow, colorIndices.green, colorIndices.blue, colorIndices.purple } |
Public Member Functions | |
void | blink (float interval) |
Makes the LED blink. (uses last defined color or defaults to red) More... | |
void | setColor (colorIndices color) |
Sets the LED's color. (will only take effect when the LED is on) More... | |
void | setOff () |
Sets the LED to off. More... | |
void | setOn () |
Sets the LED to on (will use the color defined by the last setColor call, or will default to red if color wasn't set) More... | |
void | setOn (bool on) |
turns the LED on or off depending on the parameter boolean value More... | |
Public Attributes | |
colorIndices | currentColor |
Texture2D[] | ledColors |
Properties | |
colorIndices | color [get] |
bool | isBlinking [get] |
bool | isOn [get] |
Indicates whether or not the LED is on (read-only) More... | |
enum LED.colorIndices |
|
inline |
Makes the LED blink. (uses last defined color or defaults to red)
interval | blink interval in seconds |
|
inline |
Sets the LED's color. (will only take effect when the LED is on)
color | Index for the new color. Use the LED.colorIndices enum to get color indices |
|
inline |
Sets the LED to off.
|
inline |
Sets the LED to on (will use the color defined by the last setColor call, or will default to red if color wasn't set)
|
inline |
turns the LED on or off depending on the parameter boolean value
on | set to on? |
colorIndices LED.currentColor |
Texture2D [] LED.ledColors |
|
get |
|
get |
|
get |
Indicates whether or not the LED is on (read-only)