Kerbal Space Program
1.12.4
|
Staging "rules": StageIcons are only created when a part becomes active. StageIcons are only destroyed when a part dies. More...
Classes | |
class | DVUsageStats |
Counts of number of times events occur | |
Public Member Functions | |
void | AddStageAt (int index) |
bool | CheckNullrefsInStageIconList () |
Use to check for nullrefs in StageGroups.Icons after every operation. Might need to set icons to DestroyImmediate where applicable for immediate effect. More... | |
void | DecrementCurrentStage () |
Decrements CurrentStage by 1, call at your own peril. More... | |
void | DeleteEmptyStages () |
Deletes empty stages in the stack More... | |
void | DeleteEmptyStages (bool deleteManualStages) |
Deletes empty stages in the stack More... | |
void | DeleteStage (StageGroup stageToDelete, bool tweenOut=false) |
void | DisableDeltaVHeadings () |
Disable the Delta-v Heading in the stage groups More... | |
void | DisableDeltaVTotal () |
Disable the Delta-v Total in the stage manager More... | |
void | DisableInfoPanels () |
Disable the Info Panel in the stage groups More... | |
void | EnableDeltaVHeadings () |
Enable the Delta-v Heading in the stage groups More... | |
void | EnableDeltaVHeadings (bool enable) |
Set the Enabled state of the Delta-v Heading in the stage groups More... | |
void | EnableDeltaVTotal () |
Enable the Delta-v Total in the stage manager More... | |
void | EnableDeltaVTotal (bool enable) |
Set the Enabled state of the Delta-v Total in the stage manager More... | |
void | EnableInfoPanels () |
Enable the Info Panel in the stage groups More... | |
void | EnableInfoPanels (bool enable) |
Set the Enabled state of the Info Panel in the stage groups More... | |
int | GetStageGroupInsertionIndex (PointerEventData eventData, out int modifiedSiblingIndex, bool freshEventData=true) |
Gets the insertion point in the stage group list where the mouse pointer is over. for dragging purposes. (Note: refactored from an older version where all components in the list were included, so this implementation is sound albeit a bit cumbersome) More... | |
int | GetStageGroupUnderCursor (PointerEventData eventData, out StageGroup stageGroup, bool freshEventData=true) |
Finds the stagegroup under the cursor specified in PointerEventData. (Note: refactored from an older version where all components in the list were included, so this implementation is sound albeit a bit cumbersome) More... | |
void | HoldIcon (StageIcon stageIcon, bool removeIcon=true, bool alertStagingSequencer=true) |
void | IncrementCurrentStage () |
Increments CurrentStage by 1, call at your own peril. More... | |
void | InsertStageAt (StageGroup stageGroup, int index, int forcedSiblingIndex=-1) |
Inserts a stage at a stageindex indexes are probably wrong before it is inserted due to drag drop etc. More... | |
void | RemoveStage (StageGroup stageGroup) |
removes a stagegroup from the list without deleting it More... | |
virtual void | SetDeltaVTotal_OnDeltaVCalcsCompleted () |
The code thats called when DeltaVCalcsCompleted Fires to update the text/display of the DVTotal Button More... | |
virtual void | SetDeltaVTotal_OnUpdate () |
The code thats called during Update to set the text/display of the DVTotal Button More... | |
void | SetManualStageOffset (int startIndex) |
set the star on icons More... | |
void | SortIcons (bool instant) |
Recalculates staging sequence. More... | |
void | SortIcons (bool instant, bool deleteManualStages) |
Recalculates staging sequence. More... | |
void | ToggleInfoPanels (bool showPanels) |
Slide the InfoPanels in/out More... | |
void | UnHoldIcon (StageIcon stageIcon, bool changeParents=false) |
void | UpdateStageGroups (bool seqOverride=true) |
Static Public Member Functions | |
static void | ActivateNextStage () |
Activate the next stage This is the method called when you press "space" to activate the next stage More... | |
static void | ActivateStage (int stage) |
static void | BeginFlight () |
static StageIcon | CreateIcon (ProtoStageIcon protoIcon, bool alertStagingSequencer=true) |
static void | DisableIcon (StageIcon iconToDisable) |
static List< Part > | FindPartsWithModuleSeparatingBeforeOtherPartsWithModule< Before, After > (List< Part > parts) |
static void | FindStageIndices (Part part, int thisStage, int carriedInverseStage) |
static void | GenerateStagingSequence (Part root) |
static int | GetStageCount (List< Part > parts) |
static int | RecalculateVesselStaging (Vessel v) |
static void | RemoveIcon (StageIcon stageIcon, bool destroyIcon=true, bool removeSelection=true, bool alertStagingSequencer=true) |
static void | ResumeFlight (int currStage) |
static void | SetSeparationIndices () |
static void | SetSeparationIndices (Part p, int sepIndex) |
static void | SetStageCount (List< Part > ship) |
Set the stage count for the ship, based on it's parts More... | |
static void | ShowHideStageStack (bool state) |
Shows or hides the visibility state of the stage stack UI More... | |
static void | StepBackCurrentStage () |
static void | ToggleStageStack () |
Flips the stage stack UI More... | |
Public Attributes | |
AudioClip | cannotSeparateClip |
Button | deltaVTotalButton |
LayoutElement | deltaVTotalSection |
TMPro.TextMeshProUGUI | deltaVTotalText |
RectTransform | frozenGroup |
RectTransform | heldGroup |
PointerEnterExitHandler | hoverHandlerPlusMinus |
RectTransform | iconCacheGroup |
RectTransform | layoutGroup |
RectTransform | malarkyGroup |
AudioClip | nextStageClip |
const int | radioGroupCollapsed = 99999 |
const int | radioGroupExpanded = 0 |
Button | resetButton |
ScrollRect | scrollRect |
StageGroup | stageGroupPrefab |
Color | stageIconNumberColor_lead = XKCDColors.KSPBadassGreen |
Color | stageIconNumberColor_symmetry = XKCDColors.KSPNotSoGoodOrange |
StageIcon | stageIconPrefab |
const float | tweeningSpeed = 0.15f |
1f; 0.2f; More... | |
Static Public Attributes | |
static bool | EnableDeleteEmptyStages = true |
Protected Member Functions | |
void | OnPartUpdateStageability (Part data) |
Protected Attributes | |
List< StageGroup > | stages = new List<StageGroup>() |
Properties | |
static bool | CanSeparate [get] |
static int | CurrentStage [get] |
bool | DeltaVHeadingsEnabled [get] |
Are the Delta-v headings for all stage groups enabled More... | |
bool | DeltaVTotalEnabled [get] |
Is the Delta-v Total at the bottom of the stage manager enabled More... | |
bool | InfoPanelsEnabled [get] |
Are the stagegroup InfopPanels for all stage groups enabled More... | |
static StageManager | Instance [get, set] |
static int | LastStage [get] |
static List< StageIcon > | Selection [get] |
static int | StageCount [get] |
List< StageGroup > | Stages [get] |
bool | Visible [get, set] |
Staging "rules": StageIcons are only created when a part becomes active. StageIcons are only destroyed when a part dies.
Symmetry StageIcons: Symmetry StageIcons always has a random 'groupLead' (the icon you click to expand the group) All symmetry StageIcons has a groupLead, the groupLead has a ref to itself A single groupable part doesn't have a groupLead Collapsing/expanding symmetry groups hides/activates the symmetry counterpart icons (no icons should be removed or added during this process)
State: StageManager.stages has the list of StageGroups. In the UI they are children of StageManager.layoutGroup StageGroup.icons has the list of StageIcons for that group. In the UI they are children of StageGroup.iconsUiList StageIcon.groupedIcons has the list of symmetry Stageicons. In the UI they are placed as !activeSelf directly under the groupLead
|
inlinestatic |
Activate the next stage This is the method called when you press "space" to activate the next stage
|
inlinestatic |
< deny activating if separation hasn't cooled down, or if at last stage
|
inline |
|
inlinestatic |
|
inline |
Use to check for nullrefs in StageGroups.Icons after every operation. Might need to set icons to DestroyImmediate where applicable for immediate effect.
|
inlinestatic |
|
inline |
Decrements CurrentStage by 1, call at your own peril.
|
inline |
Deletes empty stages in the stack
|
inline |
Deletes empty stages in the stack
deleteManualStages | should empty manual stages be deleted (the ones added manually by the user) |
|
inline |
|
inline |
Disable the Delta-v Heading in the stage groups
|
inline |
Disable the Delta-v Total in the stage manager
|
inlinestatic |
|
inline |
Disable the Info Panel in the stage groups
|
inline |
Enable the Delta-v Heading in the stage groups
|
inline |
Set the Enabled state of the Delta-v Heading in the stage groups
enable | Set true to enable |
|
inline |
Enable the Delta-v Total in the stage manager
|
inline |
Set the Enabled state of the Delta-v Total in the stage manager
|
inline |
Enable the Info Panel in the stage groups
|
inline |
Set the Enabled state of the Info Panel in the stage groups
enable | Set true to enable |
|
inlinestatic |
Before | : | PartModule | |
After | : | PartModule |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
Gets the insertion point in the stage group list where the mouse pointer is over. for dragging purposes. (Note: refactored from an older version where all components in the list were included, so this implementation is sound albeit a bit cumbersome)
eventData | We are really just interested in the pointer position of eventData.position |
stageGroup | The stageGroup dropped on |
modifiedSiblingIndex | With resizing list items in the list, the inverseStageIndex is not the same as the sibling index. This is the actual index you need to insert at |
|
inline |
Finds the stagegroup under the cursor specified in PointerEventData. (Note: refactored from an older version where all components in the list were included, so this implementation is sound albeit a bit cumbersome)
eventData | |
stageGroup | |
freshEventData |
|
inline |
|
inline |
Increments CurrentStage by 1, call at your own peril.
|
inline |
Inserts a stage at a stageindex indexes are probably wrong before it is inserted due to drag drop etc.
stageGroup | |
index |
|
inlineprotected |
|
inlinestatic |
|
inlinestatic |
|
inline |
removes a stagegroup from the list without deleting it
stageGroup |
|
inlinestatic |
|
inlinevirtual |
The code thats called when DeltaVCalcsCompleted Fires to update the text/display of the DVTotal Button
Its called in update when the is true
In stock code this is what updates the total button on staging and building in the editor
|
inlinevirtual |
The code thats called during Update to set the text/display of the DVTotal Button
Its called in update when the is true
In stock code this is what updates the total button in flight
|
inline |
set the star on icons
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Set the stage count for the ship, based on it's parts
ship | The list of objects that make up the ship |
|
inlinestatic |
Shows or hides the visibility state of the stage stack UI
|
inline |
Recalculates staging sequence.
instant | Should it "sort" now or 2 frames later. |
|
inline |
Recalculates staging sequence.
instant | Should it "sort" now or 2 frames later. |
deleteManualStages | Should manual stages be deleted or not. |
|
inlinestatic |
|
inline |
Slide the InfoPanels in/out
showPanel | Whether it Should end up shown or hidden |
|
inlinestatic |
Flips the stage stack UI
|
inline |
|
inline |
AudioClip KSP.UI.Screens.StageManager.cannotSeparateClip |
Button KSP.UI.Screens.StageManager.deltaVTotalButton |
LayoutElement KSP.UI.Screens.StageManager.deltaVTotalSection |
TMPro.TextMeshProUGUI KSP.UI.Screens.StageManager.deltaVTotalText |
|
static |
RectTransform KSP.UI.Screens.StageManager.frozenGroup |
RectTransform KSP.UI.Screens.StageManager.heldGroup |
PointerEnterExitHandler KSP.UI.Screens.StageManager.hoverHandlerPlusMinus |
RectTransform KSP.UI.Screens.StageManager.iconCacheGroup |
RectTransform KSP.UI.Screens.StageManager.layoutGroup |
RectTransform KSP.UI.Screens.StageManager.malarkyGroup |
AudioClip KSP.UI.Screens.StageManager.nextStageClip |
const int KSP.UI.Screens.StageManager.radioGroupCollapsed = 99999 |
const int KSP.UI.Screens.StageManager.radioGroupExpanded = 0 |
Button KSP.UI.Screens.StageManager.resetButton |
ScrollRect KSP.UI.Screens.StageManager.scrollRect |
StageGroup KSP.UI.Screens.StageManager.stageGroupPrefab |
Color KSP.UI.Screens.StageManager.stageIconNumberColor_lead = XKCDColors.KSPBadassGreen |
Color KSP.UI.Screens.StageManager.stageIconNumberColor_symmetry = XKCDColors.KSPNotSoGoodOrange |
StageIcon KSP.UI.Screens.StageManager.stageIconPrefab |
|
protected |
const float KSP.UI.Screens.StageManager.tweeningSpeed = 0.15f |
1f; 0.2f;
|
staticget |
|
staticget |
|
get |
Are the Delta-v headings for all stage groups enabled
|
get |
Is the Delta-v Total at the bottom of the stage manager enabled
|
get |
Are the stagegroup InfopPanels for all stage groups enabled
|
staticgetset |
|
staticget |
|
staticget |
|
staticget |
|
get |
|
getset |