Kerbal Space Program
1.12.4
|
Public Types | |
enum | AnimatedIconType { AnimatedIconType.NOTIFICATION = 1 } |
Type of animation you can play on an icon (supposed to be extendable) More... | |
Public Member Functions | |
void | Disable (bool makeCall=true) |
void | Enable (bool makeCall=true) |
Vector3 | GetAnchor () |
Only applicable to KSP vanilla apps. when applauncher is on top: returns lover left else returns upper right More... | |
Vector3 | GetAnchorLocal () |
Like GetAnchor, but uses the container's local position instead of the world position. More... | |
Vector3 | GetAnchorTopRight () |
Note: this method is made for the anchoring of GenericAppFrame, implement the other cases if you need. More... | |
Vector3 | GetAnchorUL () |
Vector3 | GetAnchorUR () |
void | PlayAnim (AnimatedIconType animationType, float duration) |
void | PlayAnim (AnimatedIconType animationType) |
void | SetFalse (bool makeCall=true) |
void | SetSprite (Animator sprite) |
void | SetTexture (Texture texture) |
void | SetTrue (bool makeCall=true) |
void | Setup (Texture texture) |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead. More... | |
void | Setup (Callback onButtonTrue, Callback onButtonFalse, Texture texture) |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead. More... | |
void | Setup (Callback onButtonTrue, Callback onButtonFalse, Callback onButtonHover, Callback onButtonHoverOut, Texture texture) |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead. More... | |
void | Setup (Callback onButtonTrue, Callback onButtonFalse, Callback onButtonHover, Callback onButtonHoverOut, Callback onButtonEnable, Callback onButtonDisable, Texture texture) |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead. More... | |
void | Setup (Callback onButtonTrue, Callback onButtonFalse, Callback onButtonHover, Callback onButtonHoverOut, Callback onButtonEnable, Callback onButtonDisable, ApplicationLauncher.AppScenes visibleInScenes, Texture texture) |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead. More... | |
void | Setup (Animator sprite) |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead. More... | |
void | Setup (Callback onButtonTrue, Callback onButtonFalse, Animator sprite) |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead. More... | |
void | Setup (Callback onButtonTrue, Callback onButtonFalse, Callback onButtonHover, Callback onButtonHoverOut, Animator sprite) |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead. More... | |
void | Setup (Callback onButtonTrue, Callback onButtonFalse, Callback onButtonHover, Callback onButtonHoverOut, Callback onButtonEnable, Callback onButtonDisable, Animator sprite) |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead. More... | |
void | Setup (Callback onButtonTrue, Callback onButtonFalse, Callback onButtonHover, Callback onButtonHoverOut, Callback onButtonEnable, Callback onButtonDisable, ApplicationLauncher.AppScenes visibleInScenes, Animator sprite) |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead. More... | |
void | StopAnim () |
void | StopAnim (GameScenes scene) |
Public Attributes | |
UIListItem | container |
PointerEnterExitHandler | hoverController |
Callback | onDisable = delegate { } |
Callback | onEnable = delegate { } |
Callback | onFalse = delegate { } |
Callback | onHover = delegate { } |
Callback< UIRadioButton > | onHoverBtn = delegate { } |
Callback< UIRadioButton > | onHoverBtnActive = delegate { } |
Callback | onHoverOut = delegate { } |
Callback< UIRadioButton > | onHoverOutBtn = delegate { } |
Callback | onLeftClick = delegate { } |
Callback< UIRadioButton > | onLeftClickBtn = delegate { } |
Callback | onRightClick = delegate { } |
Callback | onTrue = delegate { } |
RawImage | sprite |
Animator | spriteAnim |
UIRadioButton | toggleButton |
Properties | |
bool | IsEnabled [get, set] |
bool | IsHovering [get, set] |
ApplicationLauncher.AppScenes | VisibleInScenes [get, set] |
The "scenes" this button will be visible in. For example VisibleInScenes = ApplicationLauncher.AppScenes.FLIGHT | ApplicationLauncher.AppScenes.MAPVIEW; More... | |
enum KSP.UI.Screens.ApplicationLauncherButton.AnimatedIconType |
|
inline |
|
inline |
|
inline |
Only applicable to KSP vanilla apps. when applauncher is on top: returns lover left else returns upper right
|
inline |
Like GetAnchor, but uses the container's local position instead of the world position.
|
inline |
Note: this method is made for the anchoring of GenericAppFrame, implement the other cases if you need.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead.
texture |
|
inline |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead.
onButtonTrue | |
onButtonFalse | |
texture |
|
inline |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead.
onButtonTrue | |
onButtonFalse | |
onButtonHover | |
onButtonHoverOut | |
texture |
|
inline |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead.
onButtonTrue | |
onButtonFalse | |
onButtonHover | |
onButtonHoverOut | |
onButtonEnable | |
onButtonDisable | |
texture |
|
inline |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead.
onButtonTrue | |
onButtonFalse | |
onButtonHover | |
onButtonHoverOut | |
onButtonEnable | |
onButtonDisable | |
visibleInScenes | |
texture |
|
inline |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead.
sprite |
|
inline |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead.
onButtonTrue | |
onButtonFalse | |
sprite |
|
inline |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead.
onButtonTrue | |
onButtonFalse | |
onButtonHover | |
onButtonHoverOut | |
sprite |
|
inline |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead.
onButtonTrue | |
onButtonFalse | |
onButtonHover | |
onButtonHoverOut | |
onButtonEnable | |
onButtonDisable | |
sprite |
|
inline |
This method does not instantiate a button. Use ApplicationLauncher.Instance.AddModApplication instead.
onButtonTrue | |
onButtonFalse | |
onButtonHover | |
onButtonHoverOut | |
onButtonEnable | |
onButtonDisable | |
visibleInScenes | |
sprite |
|
inline |
|
inline |
UIListItem KSP.UI.Screens.ApplicationLauncherButton.container |
PointerEnterExitHandler KSP.UI.Screens.ApplicationLauncherButton.hoverController |
Callback KSP.UI.Screens.ApplicationLauncherButton.onDisable = delegate { } |
Callback KSP.UI.Screens.ApplicationLauncherButton.onEnable = delegate { } |
Callback KSP.UI.Screens.ApplicationLauncherButton.onFalse = delegate { } |
Callback KSP.UI.Screens.ApplicationLauncherButton.onHover = delegate { } |
Callback<UIRadioButton> KSP.UI.Screens.ApplicationLauncherButton.onHoverBtn = delegate { } |
Callback<UIRadioButton> KSP.UI.Screens.ApplicationLauncherButton.onHoverBtnActive = delegate { } |
Callback KSP.UI.Screens.ApplicationLauncherButton.onHoverOut = delegate { } |
Callback<UIRadioButton> KSP.UI.Screens.ApplicationLauncherButton.onHoverOutBtn = delegate { } |
Callback KSP.UI.Screens.ApplicationLauncherButton.onLeftClick = delegate { } |
Callback<UIRadioButton> KSP.UI.Screens.ApplicationLauncherButton.onLeftClickBtn = delegate { } |
Callback KSP.UI.Screens.ApplicationLauncherButton.onRightClick = delegate { } |
Callback KSP.UI.Screens.ApplicationLauncherButton.onTrue = delegate { } |
RawImage KSP.UI.Screens.ApplicationLauncherButton.sprite |
Animator KSP.UI.Screens.ApplicationLauncherButton.spriteAnim |
UIRadioButton KSP.UI.Screens.ApplicationLauncherButton.toggleButton |
|
getset |
|
getset |
|
getset |
The "scenes" this button will be visible in. For example VisibleInScenes = ApplicationLauncher.AppScenes.FLIGHT | ApplicationLauncher.AppScenes.MAPVIEW;