Added dynamic readout categories.
[VesselSimulator.git] / KerbalEngineer / Flight / Readouts / Surface / ImpactBiome.cs
blob:a/KerbalEngineer/Flight/Readouts/Surface/ImpactBiome.cs -> blob:b/KerbalEngineer/Flight/Readouts/Surface/ImpactBiome.cs
--- a/KerbalEngineer/Flight/Readouts/Surface/ImpactBiome.cs
+++ b/KerbalEngineer/Flight/Readouts/Surface/ImpactBiome.cs
@@ -19,7 +19,7 @@
 
 #region Using Directives
 
-using KerbalEngineer.Extensions;
+using KerbalEngineer.Flight.Sections;
 
 #endregion
 
@@ -27,14 +27,31 @@
 {
     public class ImpactBiome : ReadoutModule
     {
-        private bool showing;
+        #region Constructors
 
         public ImpactBiome()
         {
             this.Name = "Impact Biome";
             this.Category = ReadoutCategory.GetCategory("Surface");
-            this.HelpString = string.Empty;
+            this.HelpString = "Biome the Vessel will impact in.";
             this.IsDefault = true;
+        }
+
+        #endregion
+
+        #region Methods: public
+
+        public override void Draw(SectionModule section)
+        {
+            if (ImpactProcessor.ShowDetails)
+            {
+                this.DrawLine(ImpactProcessor.Biome, section.IsHud);
+            }
+        }
+
+        public override void Reset()
+        {
+            FlightEngineerCore.Instance.AddUpdatable(ImpactProcessor.Instance);
         }
 
         public override void Update()
@@ -42,23 +59,6 @@
             ImpactProcessor.RequestUpdate();
         }
 
-        public override void Draw()
-        {
-            if (ImpactProcessor.ShowDetails)
-            {
-                this.showing = true;
-                this.DrawLine(ImpactProcessor.Biome);
-            }
-            else if (this.showing)
-            {
-                this.showing = false;
-                this.ResizeRequested = true;
-            }
-        }
-
-        public override void Reset()
-        {
-            FlightEngineerCore.Instance.AddUpdatable(ImpactProcessor.Instance);
-        }
+        #endregion
     }
 }