Added orbital speed & fixed target selector resizing.
Added orbital speed & fixed target selector resizing.

--- /dev/null
+++ b/KerbalEngineer/Flight/Readouts/Orbital/OrbitalSpeed.cs
@@ -1,1 +1,25 @@
+using System;

+using System.Collections.Generic;

+using System.Linq;

+using System.Text;

+

+using KerbalEngineer.Extensions;

+

+namespace KerbalEngineer.Flight.Readouts.Orbital

+{

+    public class OrbitalSpeed : ReadoutModule

+    {

+        public OrbitalSpeed()

+        {

+            Name = "Orbital Speed";

+            this.Category = ReadoutCategory.Orbital;

+            this.HelpString = "Shows the vessel's orbital speed.";

+        }

+

+        public override void Draw()

+        {

+            this.DrawLine(FlightGlobals.ship_obtSpeed.ToSpeed());

+        }

+    }

+}

 

--- a/KerbalEngineer/Flight/Readouts/ReadoutLibrary.cs
+++ b/KerbalEngineer/Flight/Readouts/ReadoutLibrary.cs
@@ -53,6 +53,7 @@
             this.readoutModules.Add(new TimeToPeriapsis());

             this.readoutModules.Add(new Inclination());

             this.readoutModules.Add(new Eccentricity());

+            this.readoutModules.Add(new OrbitalSpeed());

             this.readoutModules.Add(new OrbitalPeriod());

             this.readoutModules.Add(new LongitudeOfAscendingNode());

             this.readoutModules.Add(new LongitudeOfPeriapsis());


--- a/KerbalEngineer/Flight/Readouts/Rendezvous/TargetSelector.cs
+++ b/KerbalEngineer/Flight/Readouts/Rendezvous/TargetSelector.cs
@@ -21,6 +21,7 @@
         private bool typeIsBody;

         private bool usingSearch;

         private VesselType vesselType = VesselType.Unknown;

+        private ITargetable targetObject;

 

         #endregion

 

@@ -67,6 +68,12 @@
             {

                 this.DrawTarget();

             }

+

+            if (this.targetObject != FlightGlobals.fetch.VesselTarget)

+            {

+                this.targetObject = FlightGlobals.fetch.VesselTarget;

+                this.ResizeRequested = true;

+            }  

         }

 

         /// <summary>

@@ -164,7 +171,7 @@
         /// </summary>

         private void DrawTarget()

         {

-            if (GUILayout.Button("Go Back to Target Selection", this.ButtonStyle))

+            if (GUILayout.Button("Go Back to Target Selection", this.ButtonStyle, GUILayout.Width(this.ContentWidth)))

             {

                 FlightGlobals.fetch.SetVesselTarget(null);

                 this.ResizeRequested = true;

@@ -180,7 +187,7 @@
         /// </summary>

         private void DrawBackToTypes()

         {

-            if (GUILayout.Button("Go Back to Type Selection", this.ButtonStyle))

+            if (GUILayout.Button("Go Back to Type Selection", this.ButtonStyle, GUILayout.Width(this.ContentWidth)))

             {

                 this.typeIsBody = false;

                 this.vesselType = VesselType.Unknown;

@@ -248,7 +255,7 @@
                 }

 

                 count++;

-                if (GUILayout.Button(body.bodyName, this.ButtonStyle))

+                if (GUILayout.Button(body.bodyName, this.ButtonStyle, GUILayout.Width(this.ContentWidth)))

                 {

                     this.SetTargetAs(body);

                 }

@@ -275,7 +282,7 @@
                 }

 

                 count++;

-                if (GUILayout.Button(body.GetName(), this.ButtonStyle))

+                if (GUILayout.Button(body.GetName(), this.ButtonStyle, GUILayout.Width(this.ContentWidth)))

                 {

                     this.SetTargetAs(body);

                 }

@@ -300,7 +307,7 @@
                 {

                     count++;

 

-                    if (GUILayout.Button(vessel.GetName(), this.ButtonStyle))

+                    if (GUILayout.Button(vessel.GetName(), this.ButtonStyle, GUILayout.Width(this.ContentWidth)))

                     {

                         this.SetTargetAs(vessel);

                     }

@@ -308,7 +315,7 @@
                 else if (vessel.vesselName.ToLower().Contains(this.searchQuery))

                 {

                     count++;

-                    if (GUILayout.Button(vessel.GetName(), this.ButtonStyle))

+                    if (GUILayout.Button(vessel.GetName(), this.ButtonStyle, GUILayout.Width(this.ContentWidth)))

                     {

                         this.SetTargetAs(vessel);

                     }

@@ -332,6 +339,7 @@
         private void SetTargetAs(ITargetable target)

         {

             FlightGlobals.fetch.SetVesselTarget(target);

+            this.targetObject = target;

             this.ResizeRequested = true;

         }

 


--- a/KerbalEngineer/KerbalEngineer.csproj
+++ b/KerbalEngineer/KerbalEngineer.csproj
@@ -73,6 +73,7 @@
     <Compile Include="Flight\Readouts\Orbital\LongitudeOfAscendingNode.cs" />

     <Compile Include="Flight\Readouts\Orbital\LongitudeOfPeriapsis.cs" />

     <Compile Include="Flight\Readouts\Orbital\OrbitalPeriod.cs" />

+    <Compile Include="Flight\Readouts\Orbital\OrbitalSpeed.cs" />

     <Compile Include="Flight\Readouts\Orbital\PeriapsisHeight.cs" />

     <Compile Include="Flight\Readouts\Orbital\SemiMajorAxis.cs" />

     <Compile Include="Flight\Readouts\Orbital\SemiMinorAxis.cs" />


 Binary files a/Output/KerbalEngineer/KerbalEngineer.dll and b/Output/KerbalEngineer/KerbalEngineer.dll differ