Interaction logic for CompatibilityWindow.xaml
        public static void CreateOverlayAsWindow()
        {
			if (Settings.Default.Enabled)
			{
				_compatWindow = new CompatibilityWindow(Core.Game);
				if (Config.Instance.VisibleOverlay)
					_compatWindow.Show();
			}
			else
				_compatWindow = null;
		} 
		public static void UpdateSettings()
		{
			if (_compatWindow != null)
			{
				if (!Settings.Default.Enabled)
				{
					_compatWindow.Close();
					_compatWindow = null;
				}
				else
					_compatWindow.UpdateSettings();
			}
			else
			{
				if (Settings.Default.Enabled)
					_compatWindow = new CompatibilityWindow(Core.Game);
				_compatWindow.UpdateSettings();
			}
		}
		public static void Unload()
		{
			_doUpdate = false;
			_compatWindow.Close();
			_compatWindow = null;
		}