Compressed atmospheric settings in editor onto a single line.
[VesselSimulator.git] / KerbalEngineer / Editor / BuildAdvanced.cs
blob:a/KerbalEngineer/Editor/BuildAdvanced.cs -> blob:b/KerbalEngineer/Editor/BuildAdvanced.cs
--- a/KerbalEngineer/Editor/BuildAdvanced.cs
+++ b/KerbalEngineer/Editor/BuildAdvanced.cs
@@ -302,27 +302,21 @@
         private void DrawAtmosphericDetails()
         {
             GUILayout.BeginHorizontal();
+            GUILayout.BeginVertical();
             GUILayout.Label("Pressure: " + (this.atmosphericPercentage * 100.0f).ToString("F1") + "%", this.settingAtmoStyle, GUILayout.Width(125.0f * GuiDisplaySize.Offset));
             GUI.skin = HighLogic.Skin;
+            this.atmosphericPercentage = GUILayout.HorizontalSlider(this.atmosphericPercentage, 0, 1.0f);
+            GUI.skin = null;
+            GUILayout.EndVertical();
+
+            GUILayout.Space(5.0f);
+
             GUILayout.BeginVertical();
-            GUILayout.FlexibleSpace();
-            this.atmosphericPercentage = GUILayout.HorizontalSlider(this.atmosphericPercentage, 0, 1.0f);
-            GUILayout.FlexibleSpace();
-            GUILayout.EndVertical();
-            GUI.skin = null;
-            GUILayout.EndHorizontal();
-
-            GUILayout.Space(5.0f);
-
-            GUILayout.BeginHorizontal();
             GUILayout.Label("Velocity: " + this.atmosphericVelocity.ToString("F1") + "m/s", this.settingAtmoStyle, GUILayout.Width(125.0f * GuiDisplaySize.Offset));
             GUI.skin = HighLogic.Skin;
-            GUILayout.BeginVertical();
-            GUILayout.FlexibleSpace();
             this.atmosphericVelocity = GUILayout.HorizontalSlider(this.atmosphericVelocity, 0, 2500f);
-            GUILayout.FlexibleSpace();
-            GUILayout.EndVertical();
             GUI.skin = null;
+            GUILayout.EndVertical();
             GUILayout.EndHorizontal();
         }