Added HUD sections to the Flight Engineer.
[VesselSimulator.git] / KerbalEngineer / Flight / Sections / SectionEditor.cs
blob:a/KerbalEngineer/Flight/Sections/SectionEditor.cs -> blob:b/KerbalEngineer/Flight/Sections/SectionEditor.cs
--- a/KerbalEngineer/Flight/Sections/SectionEditor.cs
+++ b/KerbalEngineer/Flight/Sections/SectionEditor.cs
@@ -221,6 +221,14 @@
                 {
                     DisplayStack.Instance.RequestResize();
                 }
+                if (GUILayout.Toggle(this.ParentSection.IsHud, "HUD", this.readoutButtonStyle, GUILayout.Width(50.0f)) != this.ParentSection.IsHud)
+                {
+                    this.ParentSection.IsHud = !this.ParentSection.IsHud;
+                    if (this.ParentSection.IsHud)
+                    {
+                        this.ParentSection.IsFloating = true;
+                    }
+                }
                 if (GUILayout.Button("DELETE SECTION", this.readoutButtonStyle, GUILayout.Width(150.0f)))
                 {
                     this.ParentSection.IsFloating = false;