enum KSP.UI.Screens.LED.colorIndices |
Enumerator |
---|
off |
|
red |
|
yellow |
|
green |
|
blue |
|
purple |
|
void KSP.UI.Screens.LED.Blink |
( |
float |
interval | ) |
|
|
inline |
Makes the LED blink. (uses last defined color or defaults to red)
- Parameters
-
interval | blink interval in seconds |
< Don't start another coroutine if one is already running
Sets the LED's color. (will only take effect when the LED is on)
- Parameters
-
color | Index for the new color. Use the LED.colorIndices enum to get color indices |
void KSP.UI.Screens.LED.setOff |
( |
| ) |
|
|
inline |
void KSP.UI.Screens.LED.SetOn |
( |
| ) |
|
|
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)
void KSP.UI.Screens.LED.SetOn |
( |
bool |
on | ) |
|
|
inline |
turns the LED on or off depending on the parameter boolean value
- Parameters
-
Image KSP.UI.Screens.LED.image |
UnityEngine.Sprite [] KSP.UI.Screens.LED.ledColors |
bool KSP.UI.Screens.LED.IsBlinking |
|
get |
bool KSP.UI.Screens.LED.IsOn |
|
get |
Indicates whether or not the LED is on (read-only)
The documentation for this class was generated from the following file:
- KSP/Assets/_UI5/Screens/Flight/Scripts/Gauges/LED.cs