Kerbal Space Program
1.12.4
|
Public Types | |
enum | AppScenes { AppScenes.NEVER = 0, AppScenes.ALWAYS = ~NEVER, AppScenes.SPACECENTER = 1 << 0, AppScenes.FLIGHT = 1 << 1, AppScenes.MAPVIEW = 1 << 2, AppScenes.VAB = 1 << 3, AppScenes.SPH = 1 << 4, AppScenes.TRACKSTATION = 1 << 5, AppScenes.MAINMENU = 1 << 6 } |
Public Member Functions | |
ApplicationLauncherButton | AddApplication (Callback onTrue, Callback onFalse, Callback onHover, Callback onHoverOut, Callback onEnable, Callback onDisable, Texture texture) |
ApplicationLauncherButton | AddApplication (Callback onTrue, Callback onFalse, Callback onHover, Callback onHoverOut, Callback onEnable, Callback onDisable, Animator sprite) |
ApplicationLauncherButton | AddModApplication (Callback onTrue, Callback onFalse, Callback onHover, Callback onHoverOut, Callback onEnable, Callback onDisable, ApplicationLauncher.AppScenes visibleInScenes, Texture texture) |
Add a MOD(3rd party) application to the Application Launcher. Use ApplicationLauncherButton.VisibleInScenes to set where the button should be displayed. More... | |
ApplicationLauncherButton | AddModApplication (Callback onTrue, Callback onFalse, Callback onHover, Callback onHoverOut, Callback onEnable, Callback onDisable, ApplicationLauncher.AppScenes visibleInScenes, Animator sprite) |
Add a MOD(3rd party) application to the Application Launcher. Use ApplicationLauncherButton.VisibleInScenes to set where the button should be displayed. More... | |
void | AddOnHideCallback (OnHide del) |
void | AddOnRepositionCallback (OnReposition del) |
void | AddOnShowCallback (OnShow del) |
bool | Contains (ApplicationLauncherButton button, out bool hidden) |
Is this button added to the Application Launcher? More... | |
bool | DetermineVisibility (ApplicationLauncherButton button) |
Determine if an app should be shown/hidden and then show/hide it's button More... | |
void | DisableMutuallyExclusive (ApplicationLauncherButton launcherButton) |
void | EnableMutuallyExclusive (ApplicationLauncherButton launcherButton) |
UIList | GetKnowledgeBaseList () |
void | Hide () |
delegate void | OnHide () |
delegate void | OnReposition () |
delegate void | OnShow () |
void | RemoveApplication (ApplicationLauncherButton button) |
void | RemoveModApplication (ApplicationLauncherButton button) |
void | RemoveOnHideCallback (OnHide del) |
void | RemoveOnRepositionCallback (OnReposition del) |
void | RemoveOnShowCallback (OnShow del) |
bool | ShouldBeVisible (ApplicationLauncherButton button) |
Should this app button be visible? More... | |
void | Show () |
Public Attributes | |
RectTransform | appSpace |
RectTransform | launcherSpace |
ApplicationLauncherButton | listItemPrefab |
SimpleLayout | prefab_horizontalRightLeft |
SimpleLayout | prefab_verticalTopDown |
RectTransform | tmpButtonStorage |
RectTransform | tmpModButtonStorage |
Static Public Attributes | |
static bool | Ready |
Properties | |
ApplauncherLayout | CurrentLayout [get] |
static ApplicationLauncher | Instance [get, set] |
bool | IsPositionedAtTop [get, set] |
enum KSP.UI.Screens.ApplicationLauncher.AppScenes |
|
inline |
|
inline |
|
inline |
Add a MOD(3rd party) application to the Application Launcher. Use ApplicationLauncherButton.VisibleInScenes to set where the button should be displayed.
onTrue | Callback for when the button is toggeled on |
onFalse | Callback for when the button is toggeled off |
onHover | Callback for when the mouse is hovering over the button |
onHoverOut | Callback for when the mouse hoveris off the button |
onEnable | Callback for when the button is shown or enabled by the application launcher |
onDisable | Callback for when the button is hidden or disabled by the application launcher |
visibleInScenes | The "scenes" this button will be visible in. For example VisibleInScenes = ApplicationLauncher.AppScenes.FLIGHT | ApplicationLauncher.AppScenes.MAPVIEW; |
texture | The 38x38 Texture to use for the button icon. |
|
inline |
Add a MOD(3rd party) application to the Application Launcher. Use ApplicationLauncherButton.VisibleInScenes to set where the button should be displayed.
onTrue | Callback for when the button is toggeled on |
onFalse | Callback for when the button is toggeled off |
onHover | Callback for when the mouse is hovering over the button |
onHoverOut | Callback for when the mouse hoveris off the button |
onEnable | Callback for when the button is shown or enabled by the application launcher |
onDisable | Callback for when the button is hidden or disabled by the application launcher |
visibleInScenes | The "scenes" this button will be visible in. For example VisibleInScenes = ApplicationLauncher.AppScenes.FLIGHT | ApplicationLauncher.AppScenes.MAPVIEW; |
sprite | The 38x38 'Animator' animation to use for the button icon. Use ApplicationLauncherButton.PlayAnim() to play the animation. |
|
inline |
|
inline |
|
inline |
|
inline |
Is this button added to the Application Launcher?
button | The button checked for. |
hidden | True if the button is currently hidden. |
|
inline |
Determine if an app should be shown/hidden and then show/hide it's button
button | The application button to show/hide |
|
inline |
|
inline |
|
inline |
|
inline |
delegate void KSP.UI.Screens.ApplicationLauncher.OnHide | ( | ) |
delegate void KSP.UI.Screens.ApplicationLauncher.OnReposition | ( | ) |
delegate void KSP.UI.Screens.ApplicationLauncher.OnShow | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Should this app button be visible?
button | The application button to determine visibility for. |
|
inline |
RectTransform KSP.UI.Screens.ApplicationLauncher.appSpace |
RectTransform KSP.UI.Screens.ApplicationLauncher.launcherSpace |
ApplicationLauncherButton KSP.UI.Screens.ApplicationLauncher.listItemPrefab |
SimpleLayout KSP.UI.Screens.ApplicationLauncher.prefab_horizontalRightLeft |
SimpleLayout KSP.UI.Screens.ApplicationLauncher.prefab_verticalTopDown |
|
static |
RectTransform KSP.UI.Screens.ApplicationLauncher.tmpButtonStorage |
RectTransform KSP.UI.Screens.ApplicationLauncher.tmpModButtonStorage |
|
get |
|
staticgetset |
|
getset |