Added VOID_SurfAtmo and tweaked some loading stuff or something.
[VOID.git] / VOID_Orbital.cs
blob:a/VOID_Orbital.cs -> blob:b/VOID_Orbital.cs
--- a/VOID_Orbital.cs
+++ b/VOID_Orbital.cs
@@ -24,20 +24,20 @@
 
 namespace VOID
 {
-	public class VOID_Orbital : VOID_Module
+	public class VOID_Orbital : VOID_WindowModule
 	{
-		[AVOID_SaveValue("WindowPos")]
-		protected Rect WindowPos = new Rect(Screen.width / 2, Screen.height / 2, 10f, 10f);
-
 		[AVOID_SaveValue("toggleExtended")]
 		protected VOID_SaveValue<bool> toggleExtended = false;
 
 		public VOID_Orbital()
 		{
 			this._Name = "Orbital Information";
+
+			this.WindowPos.x = Screen.width - 520f;
+			this.WindowPos.y = 250f;
 		}
 
-		public void ModuleWindow(int _)
+		public override void ModuleWindow(int _)
 		{
 			// Toadicus edit: added local sidereal longitude.
 			double LSL = vessel.longitude + vessel.orbit.referenceBody.rotationAngle;
@@ -148,24 +148,6 @@
             GUILayout.EndVertical();
             GUI.DragWindow();
 		}
-
-		public override void DrawGUI()
-		{
-			Rect _Pos = this.WindowPos;
-
-			_Pos = GUILayout.Window(
-				VOID_Core.Instance.windowID,
-				_Pos,
-				this.ModuleWindow,
-				this.Name, GUILayout.Width(250),
-				GUILayout.Height(50));
-
-			if (_Pos != this.WindowPos)
-			{
-				this.WindowPos = _Pos;
-				VOID_Core.Instance.configDirty = true;
-			}
-		}
 	}
 }