Skip to content

Commit

Permalink
Rename to "PVG Settings" and use horizontal split
Browse files Browse the repository at this point in the history
Slightly more compact menu.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
  • Loading branch information
lamont-granquist committed Jun 17, 2023
1 parent 2dbfcc6 commit b0ee3b5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions MechJeb2/MechJebModuleAscentMenu.cs
Expand Up @@ -410,16 +410,17 @@ protected override void WindowGUI(int windowID)
ShowTargetingGUIElements();
ShowGuidanceSettingsGUIElements();


GUILayout.BeginVertical(GUI.skin.box);
GUILayout.BeginHorizontal();
_settingsMenu.enabled = GUILayout.Toggle(_settingsMenu.enabled, "Ascent Settings");

if (_ascentSettings.AscentType == AscentType.PVG)
{
core.stageStats.RequestUpdate(this);
GUILayout.BeginVertical(GUI.skin.box);
_pvgSettingsMenu.enabled = GUILayout.Toggle(_pvgSettingsMenu.enabled, "Edit Rocket Staging");
GUILayout.EndVertical();
_pvgSettingsMenu.enabled = GUILayout.Toggle(_pvgSettingsMenu.enabled, "PVG Settings");
}

GUILayout.BeginVertical(GUI.skin.box);
_settingsMenu.enabled = GUILayout.Toggle(_settingsMenu.enabled, "Edit Ascent Settings");
GUILayout.EndHorizontal();
GUILayout.EndVertical();

ShowStatusGUIElements();
Expand Down

0 comments on commit b0ee3b5

Please sign in to comment.