Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Properties | List of all members
ManeuverTool Class Reference
Inheritance diagram for ManeuverTool:
KSP.UI.Screens.UIApp

Public Member Functions

void ChangeTime (bool UT, bool seconds)
 Change the Time Display. More...
 
void CreateManeuver (bool createAlarm)
 Create the Manuever nodes for the currentSelectedTransferType.currentSelectedTransfer More...
 
GameObject GetTransferVisualPrefab (string name)
 Retrieve a Transfer Visualization window Prefab by it's name. More...
 
void InvokeAsync (Action action)
 Queues an action to be invoked on the main game thread. More...
 
- Public Member Functions inherited from KSP.UI.Screens.UIApp
virtual void Awake ()
 
void ForceAddToAppLauncher ()
 

Public Attributes

ManeuverToolUIFrame appFrame
 The Application UI frame More...
 
TransferTypeBase currentSelectedTransferType
 The currently selected Transfer Type from the transfer type dropdown list. More...
 
bool currentTimeDisplaySeconds = false
 Current time display is displaying in seconds More...
 
bool currentTimeDisplayUT = true
 Current time display is in UT More...
 
- Public Attributes inherited from KSP.UI.Screens.UIApp
Animator appLauncherAnim
 
Texture appLauncherIcon
 

Static Public Attributes

static ManeuverTool Instance
 
static bool Ready = false
 

Protected Member Functions

override void DisplayApp ()
 
override
ApplicationLauncher.AppScenes 
GetAppScenes ()
 
override Vector3 GetAppScreenPos (Vector3 defaultAnchorPos)
 
override void HideApp ()
 
void Initial_MouseInput_PointerExit (PointerEventData eventData)
 
override bool OnAppAboutToStart ()
 
override void OnAppDestroy ()
 
override void OnAppInitialized ()
 
override void Reposition ()
 
- Protected Member Functions inherited from KSP.UI.Screens.UIApp
void MouseInput_PointerEnter (PointerEventData eventData)
 
void MouseInput_PointerExit (PointerEventData eventData)
 
virtual void OnAppStarted ()
 

Properties

bool isMainThread [get]
 Gets a value indicating whether or not the current thread is the game's main thread. More...
 
- Properties inherited from KSP.UI.Screens.UIApp
bool appIsLive [get, set]
 
ApplicationLauncherButton appLauncherButton [get, set]
 
bool hover [get, set]
 
bool IsShowing [get]
 Is the App window visible on the screen More...
 
bool pinned [get, set]
 

Additional Inherited Members

- Protected Attributes inherited from KSP.UI.Screens.UIApp
int AppStartFrameDelay = 5
 The amount of frames to delay OnAppAboutToStart after the applauncher reports to be ready. Defaults to 5, should be enough to ensure all flight and scenario modules are loaded. Increase if necessary. More...
 
Callback defaultCallback = delegate { }
 
bool enableMutuallyExclusive = true
 
bool enableOnHover = true
 

Member Function Documentation

void ManeuverTool.ChangeTime ( bool  UT,
bool  seconds 
)
inline

Change the Time Display.

Parameters
UT
seconds
void ManeuverTool.CreateManeuver ( bool  createAlarm)
inline

Create the Manuever nodes for the currentSelectedTransferType.currentSelectedTransfer

Parameters
createAlarmIf true will create an Alarm for the maneuver as well.
override void ManeuverTool.DisplayApp ( )
inlineprotectedvirtual

Implements KSP.UI.Screens.UIApp.

override ApplicationLauncher.AppScenes ManeuverTool.GetAppScenes ( )
inlineprotectedvirtual

Implements KSP.UI.Screens.UIApp.

override Vector3 ManeuverTool.GetAppScreenPos ( Vector3  defaultAnchorPos)
inlineprotectedvirtual

Implements KSP.UI.Screens.UIApp.

GameObject ManeuverTool.GetTransferVisualPrefab ( string  name)
inline

Retrieve a Transfer Visualization window Prefab by it's name.

Parameters
name
Returns
The prefab GameObject or null if no match is found.
override void ManeuverTool.HideApp ( )
inlineprotectedvirtual

Implements KSP.UI.Screens.UIApp.

void ManeuverTool.Initial_MouseInput_PointerExit ( PointerEventData  eventData)
inlineprotected
void ManeuverTool.InvokeAsync ( Action  action)
inline

Queues an action to be invoked on the main game thread.

Parameters
actionThe action to be queued.
override bool ManeuverTool.OnAppAboutToStart ( )
inlineprotectedvirtual

Implements KSP.UI.Screens.UIApp.

override void ManeuverTool.OnAppDestroy ( )
inlineprotectedvirtual

Implements KSP.UI.Screens.UIApp.

override void ManeuverTool.OnAppInitialized ( )
inlineprotectedvirtual

Implements KSP.UI.Screens.UIApp.

override void ManeuverTool.Reposition ( )
inlineprotectedvirtual

Reimplemented from KSP.UI.Screens.UIApp.

Member Data Documentation

ManeuverToolUIFrame ManeuverTool.appFrame

The Application UI frame

TransferTypeBase ManeuverTool.currentSelectedTransferType

The currently selected Transfer Type from the transfer type dropdown list.

bool ManeuverTool.currentTimeDisplaySeconds = false

Current time display is displaying in seconds

bool ManeuverTool.currentTimeDisplayUT = true

Current time display is in UT

ManeuverTool ManeuverTool.Instance
static
bool ManeuverTool.Ready = false
static

Property Documentation

bool ManeuverTool.isMainThread
get

Gets a value indicating whether or not the current thread is the game's main thread.


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