Changed VOID_ConfigValue to VOID_SaveValue, to be more intuitive.
[VOID.git] / VOID_HUD.cs
blob:a/VOID_HUD.cs -> blob:b/VOID_HUD.cs
--- a/VOID_HUD.cs
+++ b/VOID_HUD.cs
@@ -32,16 +32,12 @@
 		/*
 		 * Fields
 		 * */
-		protected new bool _hasConfigurables = true;
-
 		[AVOID_SaveValue("colorIndex")]
 		protected VOID_SaveValue<int> _colorIndex = 0;
 
 		protected List<Color> textColors = new List<Color>();
 
 		protected GUIStyle labelStyle;
-
-		protected Vessel vessel = null;
 
 		/*
 		 * Properties
@@ -70,6 +66,9 @@
 		public VOID_HUD() : base()
 		{
 			this._Name = "Heads-Up Display";
+
+			this._Active = true;
+
 			this.textColors.Add(Color.green);
 			this.textColors.Add(Color.black);
 			this.textColors.Add(Color.white);
@@ -88,19 +87,7 @@
 
 		public override void DrawGUI()
 		{
-			Tools.PostDebugMessage ("VOID_HUD: Drawing GUI.");
-
 			GUI.skin = VOID_Core.Instance.Skin;
-
-			if (vessel == null)
-			{
-				vessel = FlightGlobals.ActiveVessel;
-			}
-
-			if (vessel != FlightGlobals.ActiveVessel)
-			{
-				vessel = FlightGlobals.ActiveVessel;
-			}
 
 			if (VOID_Core.Instance.powerAvailable)
 			{