Added readout line count and resize.
[VesselSimulator.git] / KerbalEngineer / Flight / Readouts / Surface / ImpactLongitude.cs
blob:a/KerbalEngineer/Flight/Readouts/Surface/ImpactLongitude.cs -> blob:b/KerbalEngineer/Flight/Readouts/Surface/ImpactLongitude.cs
--- a/KerbalEngineer/Flight/Readouts/Surface/ImpactLongitude.cs
+++ b/KerbalEngineer/Flight/Readouts/Surface/ImpactLongitude.cs
@@ -27,7 +27,7 @@
 {
     public class ImpactLongitude : ReadoutModule
     {
-        private bool showing;
+        #region Constructors
 
         public ImpactLongitude()
         {
@@ -37,22 +37,15 @@
             this.IsDefault = true;
         }
 
-        public override void Update()
-        {
-            ImpactProcessor.RequestUpdate();
-        }
+        #endregion
+
+        #region Methods: public
 
         public override void Draw()
         {
             if (ImpactProcessor.ShowDetails)
             {
-                this.showing = true;
                 this.DrawLine(ImpactProcessor.Longitude.ToAngle());
-            }
-            else if (this.showing)
-            {
-                this.showing = false;
-                this.ResizeRequested = true;
             }
         }
 
@@ -60,5 +53,12 @@
         {
             FlightEngineerCore.Instance.AddUpdatable(ImpactProcessor.Instance);
         }
+
+        public override void Update()
+        {
+            ImpactProcessor.RequestUpdate();
+        }
+
+        #endregion
     }
 }