VOID_Core: Brought back from cf4ba29ea, added _windowID reset.
VOID_Core: Brought back from cf4ba29ea, added _windowID reset.

--- a/VOID_Core.cs
+++ b/VOID_Core.cs
@@ -55,6 +55,8 @@
 			}
 		}
 
+		public static double Constant_G = 6.674e-11;
+
 		/*
 		 * Fields
 		 * */
@@ -90,6 +92,9 @@
 		protected string VOIDIconOffPath = "VOID/Textures/void_icon_off";
 
 		protected int windowBaseID = -96518722;
+		protected int _windowID = 0;
+
+		protected Dictionary<string, GUIStyle> _LabelStyles = new Dictionary<string, GUIStyle>();
 
 		[AVOID_SaveValue("togglePower")]
 		public VOID_SaveValue<bool> togglePower = true;
@@ -135,11 +140,23 @@
 			}
 		}
 
-		public Vessel vessel
+		public int windowID
 		{
 			get
 			{
-				return FlightGlobals.ActiveVessel;
+				if (this._windowID == 0)
+				{
+				this._windowID = this.windowBaseID;
+				}
+				return this._windowID++;
+			}
+		}
+
+		public Dictionary<string, GUIStyle> LabelStyles
+		{
+			get
+			{
+				return this._LabelStyles;
 			}
 		}
 
@@ -152,6 +169,19 @@
 
 			this.VOIDIconOn = GameDatabase.Instance.GetTexture (this.VOIDIconOnPath, false);
 			this.VOIDIconOff = GameDatabase.Instance.GetTexture (this.VOIDIconOffPath, false);
+
+			this.LabelStyles["center"] = new GUIStyle(GUI.skin.label);
+			this.LabelStyles["center"].normal.textColor = Color.white;
+			this.LabelStyles["center"].alignment = TextAnchor.UpperCenter;
+
+			this.LabelStyles["center_bold"] = new GUIStyle(GUI.skin.label);
+			this.LabelStyles["center_bold"].normal.textColor = Color.white;
+			this.LabelStyles["center_bold"].alignment = TextAnchor.UpperCenter;
+			this.LabelStyles["center_bold"].fontStyle = FontStyle.Bold;
+
+			this.LabelStyles["txt_right"] = new GUIStyle(GUI.skin.label);
+			this.LabelStyles["txt_right"].normal.textColor = Color.white;
+			this.LabelStyles["txt_right"].alignment = TextAnchor.UpperRight;
 
 			this.LoadConfig ();
 		}
@@ -321,9 +351,9 @@
 				this.LoadModules ();
 			}
 
+			this._windowID = this.windowBaseID;
+
 			GUI.skin = this.Skin;
-
-			int windowID = this.windowBaseID;
 
 			this.VOIDIconTexture = this.VOIDIconOff;  //icon off default
 			if (this.togglePower) this.VOIDIconTexture = this.VOIDIconOn;     //or on if power_toggle==true
@@ -337,7 +367,7 @@
 				Rect _mainWindowPos = this.mainWindowPos;
 
 				_mainWindowPos = GUILayout.Window (
-					++windowID,
+					this.windowID,
 					_mainWindowPos,
 					this.VOIDMainWindow,
 					string.Join (" ", new string[] {this.VoidName, this.VoidVersion}),
@@ -356,7 +386,7 @@
 				Rect _configWindowPos = this.configWindowPos;
 
 				_configWindowPos = GUILayout.Window (
-					++windowID,
+					this.windowID,
 					_configWindowPos,
 					this.VOIDConfigWindow,
 					string.Join (" ", new string[] {this.VoidName, "Configuration"}),

--- a/VOID_HUD.cs
+++ b/VOID_HUD.cs
@@ -32,8 +32,6 @@
 		/*
 		 * Fields
 		 * */
-		protected string _Name = "Heads-Up Display";
-
 		protected new bool _hasConfigurables = true;
 
 		[AVOID_SaveValue("colorIndex")]
@@ -69,6 +67,8 @@
 		 * */
 		public VOID_HUD() : base()
 		{
+			this._Name = "Heads-Up Display";
+
 			this.textColors.Add(Color.green);
 			this.textColors.Add(Color.black);
 			this.textColors.Add(Color.white);