Added readouts.
[VesselSimulator.git] / KerbalEngineer / Flight / Readouts / ReadoutLibrary.cs
blob:a/KerbalEngineer/Flight/Readouts/ReadoutLibrary.cs -> blob:b/KerbalEngineer/Flight/Readouts/ReadoutLibrary.cs
--- a/KerbalEngineer/Flight/Readouts/ReadoutLibrary.cs
+++ b/KerbalEngineer/Flight/Readouts/ReadoutLibrary.cs
@@ -34,6 +34,8 @@
 using ApoapsisHeight = KerbalEngineer.Flight.Readouts.Orbital.ApoapsisHeight;
 using OrbitalPeriod = KerbalEngineer.Flight.Readouts.Orbital.OrbitalPeriod;
 using PeriapsisHeight = KerbalEngineer.Flight.Readouts.Orbital.PeriapsisHeight;
+using SemiMajorAxis = KerbalEngineer.Flight.Readouts.Orbital.SemiMajorAxis;
+using SemiMinorAxis = KerbalEngineer.Flight.Readouts.Orbital.SemiMinorAxis;
 using TimeToApoapsis = KerbalEngineer.Flight.Readouts.Orbital.TimeToApoapsis;
 using TimeToPeriapsis = KerbalEngineer.Flight.Readouts.Orbital.TimeToPeriapsis;
 
@@ -79,9 +81,14 @@
                 readouts.Add(new OrbitalPeriod());
                 readouts.Add(new LongitudeOfAscendingNode());
                 readouts.Add(new LongitudeOfPeriapsis());
+                readouts.Add(new ArgumentOfPeriapsis());
                 readouts.Add(new TrueAnomaly());
+                readouts.Add(new MeanAnomaly());
+                readouts.Add(new EccentricAnomaly());
                 readouts.Add(new SemiMajorAxis());
                 readouts.Add(new SemiMinorAxis());
+                readouts.Add(new AngleToPrograde());
+                readouts.Add(new AngleToRetrograde());
 
                 // Surface
                 readouts.Add(new AltitudeSeaLevel());
@@ -112,7 +119,6 @@
                 readouts.Add(new IntakeAirDemand());
                 readouts.Add(new IntakeAirSupply());
                 readouts.Add(new IntakeAirSupplyDemand());
-                readouts.Add(new SimulationDelay());
 
                 // Rendezvous
                 readouts.Add(new TargetSelector());
@@ -130,10 +136,13 @@
                 readouts.Add(new Rendezvous.TimeToPeriapsis());
                 readouts.Add(new Distance());
                 readouts.Add(new Rendezvous.OrbitalPeriod());
+                readouts.Add(new Rendezvous.SemiMajorAxis());
+                readouts.Add(new Rendezvous.SemiMinorAxis());
 
                 // Misc
                 readouts.Add(new Separator());
                 readouts.Add(new GuiSizeAdjustor());
+                readouts.Add(new SimulationDelay());
                 readouts.Add(new TimeReference());
 
                 LoadHelpStrings();
@@ -159,7 +168,15 @@
 
         #endregion
 
-        #region Public Methods
+        #region Methods: public
+
+        /// <summary>
+        ///     Gets a list of readout modules which are associated with the specified category.
+        /// </summary>
+        public static List<ReadoutModule> GetCategory(ReadoutCategory category)
+        {
+            return readouts.Where(r => r.Category == category).ToList();
+        }
 
         /// <summary>
         ///     Gets a readout module with the specified name or class name. (Returns null if not found.)
@@ -170,14 +187,6 @@
         }
 
         /// <summary>
-        ///     Gets a list of readout modules which are associated with the specified category.
-        /// </summary>
-        public static List<ReadoutModule> GetCategory(ReadoutCategory category)
-        {
-            return readouts.Where(r => r.Category == category).ToList();
-        }
-
-        /// <summary>
         ///     Resets all the readout modules.
         /// </summary>
         public static void Reset()
@@ -190,7 +199,7 @@
 
         #endregion
 
-        #region Private Methods
+        #region Methods: private
 
         /// <summary>
         ///     Loads the help strings from file.