Got the close button working; now converting from a cached anonymous method to an inherited method. TODO: VOID_ConfigModule.
[VOID.git] / VOIDCore_Generic.cs
blob:a/VOIDCore_Generic.cs -> blob:b/VOIDCore_Generic.cs
--- a/VOIDCore_Generic.cs
+++ b/VOIDCore_Generic.cs
@@ -119,6 +119,7 @@
 				"ExperimentsDialogSkin",
 				"ExpRecoveryDialogSkin",
 				"KSP window 1",
+				"KSP window 3",
 				"KSP window 5",
 				"KSP window 6",
 				"PartTooltipSkin",
@@ -285,6 +286,8 @@
 			}
 		}
 
+		private bool useToolbarManager;
+
 		protected bool UseToolbarManager
 		{
 			get
@@ -384,6 +387,8 @@
 				this.InitializeToolbarButton();
 			}
 
+			base.DrawGUI();
+/*
 			if (!this.mainGuiMinimized)
 			{
 
@@ -450,7 +455,7 @@
 				{
 					this.configWindowPos = _configWindowPos;
 				}
-			}
+			}*/
 		}
 
 		public virtual void Update()
@@ -593,7 +598,7 @@
 			this.StartGUI();
 		}
 
-		public void VOIDMainWindow(int _)
+		public override void ModuleWindow(int id)
 		{
 			GUILayout.BeginVertical();
 
@@ -627,7 +632,8 @@
 			this.configWindowMinimized.value = !GUITools.Toggle(!this.configWindowMinimized, "Configuration");
 
 			GUILayout.EndVertical();
-			GUI.DragWindow();
+
+			base.ModuleWindow(id);
 		}
 
 		public void VOIDConfigWindow(int _)
@@ -1168,6 +1174,8 @@
 		{
 			this.StopGUI();
 
+			this.onSkinChanged(this);
+
 			if (this.AppLauncherButton != null)
 			{
 				ApplicationLauncher.Instance.RemoveModApplication(this.AppLauncherButton);