Skip to content

Commit

Permalink
Make KSPStage mandatory stage stats column
Browse files Browse the repository at this point in the history
I deeply hate seeing it being hidden and not exposing that information

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
  • Loading branch information
lamont-granquist committed Jul 28, 2023
1 parent b4dd0e5 commit 26f5256
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MechJeb2/MechJebStageStatsHelper.cs
Expand Up @@ -168,6 +168,8 @@ private void SetAllStageVisibility(bool state)
{
foreach (StageData data in AllStages)
stageVisibility[data] = state;

stageVisibility[StageData.KSPStage] = true;
}

// This should only be called before Layout phase, and never in Repaint phase
Expand Down Expand Up @@ -276,6 +278,8 @@ public void AllStageStats()
buttonNotPressed &= stageVisibility[info] = !DrawStageStatsColumn(stageHeaderData[info], stageDisplayInfo[info]);
}

stageVisibility[StageData.KSPStage] = true;

if (!buttonNotPressed)
{
StageDisplayState = 3;
Expand Down Expand Up @@ -345,7 +349,6 @@ private void SetVisibility(int state)
{
case 0:
SetAllStageVisibility(false);
stageVisibility[StageData.Thrust] = false;
stageVisibility[StageData.VacInitialTWR] = true;
stageVisibility[StageData.AtmoInitialTWR] = true;
stageVisibility[StageData.VacDeltaV] = true;
Expand Down

0 comments on commit 26f5256

Please sign in to comment.