Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
KSP.UI.Screens.DebugToolbar.Screens.Debug.VesselDebugDeltaVInfo Class Reference

Public Member Functions

bool Create (GameObject stageItemPrefab, RectTransform contentParent, GameObject engineItemPrefab, GameObject propellantItemPrefab, GameObject partsListPrefab, DeltaVStageInfo stageInfo, CalcType type)
 Create a ScreenDeltaVStageInfo UI element and associated ScreenDeltaVPartsListInfo, VesselDebugDeltaVEngineInfo, ScreenDeltaVPropellantInfo UI elements. More...
 
void Destroy ()
 Destroy all the Related UI GameObjects. More...
 
void SetActive (bool active, bool partsActive, bool enginesActive)
 Set the related UI GameObjects based on input bools. More...
 
bool Update (DeltaVStageInfo stageInfo, CalcType type, string calctypeDesc, bool showEngines, bool showParts, bool showAllStages)
 Update the StageInfo, PartsList, Engines and Propellants UI objects. More...
 
 VesselDebugDeltaVInfo (int stage)
 Constructor More...
 

Public Attributes

DeltaVStageInfo stageInfo
 The related DeltaV Stage Info More...
 

Constructor & Destructor Documentation

KSP.UI.Screens.DebugToolbar.Screens.Debug.VesselDebugDeltaVInfo.VesselDebugDeltaVInfo ( int  stage)
inline

Constructor

Parameters
stageThe Stage number

Member Function Documentation

bool KSP.UI.Screens.DebugToolbar.Screens.Debug.VesselDebugDeltaVInfo.Create ( GameObject  stageItemPrefab,
RectTransform  contentParent,
GameObject  engineItemPrefab,
GameObject  propellantItemPrefab,
GameObject  partsListPrefab,
DeltaVStageInfo  stageInfo,
CalcType  type 
)
inline

Create a ScreenDeltaVStageInfo UI element and associated ScreenDeltaVPartsListInfo, VesselDebugDeltaVEngineInfo, ScreenDeltaVPropellantInfo UI elements.

Parameters
stageItemPrefabThe prefab for the ScreenDeltaVStageInfo
contentParentThe parent transform
engineItemPrefabThe prefab for the VesselDebugDeltaVEngineInfo
propellantItemPrefabThe prefab for the ScreenDeltaVPropellantInfo
partsListPrefabThe prefab for the ScreenDeltaVPartsListInfo
stageInfoThe related DeltaVStageInfo entry
typeThe Calculation Type.
Returns
True or false if created successfully or not
void KSP.UI.Screens.DebugToolbar.Screens.Debug.VesselDebugDeltaVInfo.Destroy ( )
inline

Destroy all the Related UI GameObjects.

void KSP.UI.Screens.DebugToolbar.Screens.Debug.VesselDebugDeltaVInfo.SetActive ( bool  active,
bool  partsActive,
bool  enginesActive 
)
inline

Set the related UI GameObjects based on input bools.

Parameters
activeSets the overall StageInfo UI gameobject
partsActiveSets the PartsList UI gameobject
enginesActiveSets the Engines and Propellants UI gameobjects
bool KSP.UI.Screens.DebugToolbar.Screens.Debug.VesselDebugDeltaVInfo.Update ( DeltaVStageInfo  stageInfo,
CalcType  type,
string  calctypeDesc,
bool  showEngines,
bool  showParts,
bool  showAllStages 
)
inline

Update the StageInfo, PartsList, Engines and Propellants UI objects.

Parameters
stageInfoThe related DeltaV Stage Info
typeThe Calculation Type description string.
calctypeDescThe Calculation type description
showEnginesWhether to show engine and propellant info or not.
showPartsWhether to show the PartsList or not.
showAllStagesWhether to show all stages or only stages with active engines.
Returns

Member Data Documentation

DeltaVStageInfo KSP.UI.Screens.DebugToolbar.Screens.Debug.VesselDebugDeltaVInfo.stageInfo

The related DeltaV Stage Info


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