Updated for KSP 0.90.0 and KerbalEngineer 1.0.
[VOID.git] / VOID_TWR.cs
blob:a/VOID_TWR.cs -> blob:b/VOID_TWR.cs
--- a/VOID_TWR.cs
+++ b/VOID_TWR.cs
@@ -12,17 +12,18 @@
 
 namespace VOID
 {
+	[VOID_Scenes(GameScenes.EDITOR, GameScenes.FLIGHT)]
 	public class VOID_TWR : VOID_WindowModule
 	{
 		public VOID_TWR() : base()
 		{
-			this._Name = "IP Thrust-to-Weight Ratios";
+			this.Name = "IP Thrust-to-Weight Ratios";
 		}
 
-		public override void ModuleWindow(int _)
+		public override void ModuleWindow(int id)
 		{
 			if (
-				HighLogic.LoadedSceneIsEditor ||
+				!HighLogic.LoadedSceneIsFlight ||
 				(TimeWarp.WarpMode == TimeWarp.Modes.LOW) ||
 				(TimeWarp.CurrentRate <= TimeWarp.MaxPhysicsRate)
 			)
@@ -59,11 +60,9 @@
 
 			GUILayout.EndVertical();
 
-			GUI.DragWindow();
+			base.ModuleWindow(id);
 		}
 	}
-
-	public class VOID_EditorTWR : VOID_TWR, IVOID_EditorModule {}
 }