Changed up the window modules to inherit the generic stuff. Adding more and more modules. CBInfoBrowser in progress.
[VOID.git] / VOIDFlightMaster.cs
blob:a/VOIDFlightMaster.cs -> blob:b/VOIDFlightMaster.cs
--- a/VOIDFlightMaster.cs
+++ b/VOIDFlightMaster.cs
@@ -344,491 +344,6 @@
 //            }
 //        }
 //
-//        private void load_old_settings()
-//        {
-//            if (KSP.IO.File.Exists<VOIDFlightMaster>("VOID.cfg", null))
-//            {
-//                string[] data = KSP.IO.File.ReadAllLines<VOIDFlightMaster>("VOID.cfg", null);
-//                string[] name_val;
-//                string[] temp;
-//                string name = "";
-//                string val = "";
-//
-//                foreach (string s in data)
-//                {
-//                    name_val = s.Split('=');
-//                    name = name_val[0].Trim();
-//                    val = name_val[1].Trim();
-//
-//                    if (val != "")
-//                    {
-//                        if (name == "MAIN WINDOW POS")
-//                        {
-//                            temp = val.Split(',');
-//                            //window_0_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 10, 10);
-//                            main_window_pos.x = Convert.ToSingle(temp[0].Trim());
-//                            main_window_pos.y = Convert.ToSingle(temp[1].Trim());
-//                        }
-//                        if (name == "VOID WINDOW POS")
-//                        {
-//                            temp = val.Split(',');
-//                            void_window_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 10f, 10f);
-//                        }
-//                        if (name == "ATMO WINDOW POS")
-//                        {
-//                            temp = val.Split(',');
-//                            atmo_window_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 10f, 10f);
-//                        }
-//                        if (name == "TAD WINDOW POS")
-//                        {
-//                            temp = val.Split(',');
-//                            transfer_window_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 10f, 10f);
-//                        }
-//                        if (name == "VESREG WINDOW POS")
-//                        {
-//                            temp = val.Split(',');
-//                            vessel_register_window_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 10f, 10f);
-//                        }
-//                        if (name == "DATATIME WINDOW POS")
-//                        {
-//                            temp = val.Split(',');
-//                            data_logging_window_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 10f, 10f);
-//                        }
-//                        if (name == "VESINFO WINDOW POS")
-//                        {
-//                            temp = val.Split(',');
-//                            vessel_info_window_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 10f, 10f);
-//                        }
-//                        if (name == "MISC WINDOW POS")
-//                        {
-//                            temp = val.Split(',');
-//                            misc_window_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 10f, 10f);
-//                        }
-//                        if (name == "CELINFO WINDOW POS")
-//                        {
-//                            temp = val.Split(',');
-//                            body_op_window_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 10f, 10f);
-//                        }
-//                        if (name == "RENDEZVOUS WINDOW POS")
-//                        {
-//                            temp = val.Split(',');
-//                            rendezvous_info_window_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 10f, 10f);
-//                        }
-//                        if (name == "ICON POS")
-//                        {
-//                            temp = val.Split(',');
-//                            main_icon_pos = new Rect(Convert.ToSingle(temp[0].Trim()), Convert.ToSingle(temp[1].Trim()), 30f, 30f);
-//                        }
-//                        if (name == "HUD MODULE") toggleHUDModule = Boolean.Parse(val);
-//                        if (name == "VOID MODULE") void_module = Boolean.Parse(val);
-//                        if (name == "ATMO MODULE") atmo_module = Boolean.Parse(val);
-//                        if (name == "TAD MODULE") tad_module = Boolean.Parse(val);
-//                        if (name == "VESREG MODULE") vessel_register_module = Boolean.Parse(val);
-//                        if (name == "DATATIME MODULE") data_time_module = Boolean.Parse(val);
-//                        if (name == "VESINFO MODULE") vessel_info_module = Boolean.Parse(val);
-//                        if (name == "MISC MODULE") misc_module = Boolean.Parse(val);
-//                        if (name == "CELINFO MODULE") celestial_body_info_module = Boolean.Parse(val);
-//                        if (name == "CELINFO SHOW OBTL") body_op_show_orbital = Boolean.Parse(val);
-//                        if (name == "CELINFO SHOW PHYS") body_op_show_physical = Boolean.Parse(val);
-//                        if (name == "MAIN GUI MINIMIZED") main_gui_minimized = Boolean.Parse(val);
-//                        if (name == "HIDE ON PAUSE") hide_on_pause = Boolean.Parse(val);
-//                        if (name == "SKIN INDEX") skin_index = Int32.Parse(val);
-//                        if (name == "DISABLE POWER USAGE") disable_power_usage = Boolean.Parse(val);
-//                        if (name == "SHOW TOOLTIPS") show_tooltips = Boolean.Parse(val);
-//                        if (name == "SHOW RENDEZVOUS INFO") rendezvous_module = Boolean.Parse(val);
-//                        if (name == "USE KSP TARGET") hide_vesreg_info = Boolean.Parse(val);
-//                        if (name == "USER LANG") user_lang = (languages)Enum.Parse(typeof(languages), val);
-//                    }
-//                }
-//            }
-//        }
-//
-//		private void load_settings()
-//		{
-//			Tools.PostDebugMessage ("VOID: Loading settings.");
-//			var config = KSP.IO.PluginConfiguration.CreateForType<VOIDFlightMaster> ();
-//			config.load ();
-//
-//			int loadedConfigVersion = config.GetValue ("ConfigVersion", 0);
-//
-//			if (loadedConfigVersion < 1 || true)
-//			{
-//				this.load_old_settings ();
-//				// this.write_settings ();
-//				// TODO: Enable this when the config update works for sure.
-//				// KSP.IO.File.Delete<VOID> ("VOID.cfg");
-//				return;
-//			}
-//
-//			this.main_window_pos = config.GetValue("MAIN_WINDOW_POS", main_window_pos);
-//			this.void_window_pos = config.GetValue("VOID_WINDOW_POS", void_window_pos);
-//			this.atmo_window_pos = config.GetValue("ATMO_WINDOW_POS", atmo_window_pos);
-//			this.transfer_window_pos = config.GetValue("TAD_WINDOW_POS", transfer_window_pos);
-//			this.vessel_register_window_pos = config.GetValue("VESREG_WINDOW_POS", vessel_register_window_pos);
-//			this.data_logging_window_pos = config.GetValue("DATATIME_WINDOW_POS", data_logging_window_pos);
-//			this.vessel_info_window_pos = config.GetValue("VESINFO_WINDOW_POS", vessel_info_window_pos);
-//			this.misc_window_pos = config.GetValue("MISC_WINDOW_POS", misc_window_pos);
-//			this.body_op_window_pos = config.GetValue("CELINFO_WINDOW_POS", body_op_window_pos);
-//			this.rendezvous_info_window_pos = config.GetValue("RENDEZVOUS_WINDOW_POS", rendezvous_info_window_pos);
-//			this.main_icon_pos = config.GetValue("ICON_POS", main_icon_pos);
-//
-//			this.toggleHUDModule = config.GetValue("HUD_MODULE", false);
-//			this.void_module = config.GetValue("VOID_MODULE", false);
-//			this.atmo_module = config.GetValue("ATMO_MODULE", false);
-//			this.tad_module = config.GetValue("TAD_MODULE", false);
-//			this.vessel_register_module = config.GetValue("VESREG_MODULE", false);
-//			this.data_time_module = config.GetValue("DATATIME_MODULE", false);
-//			this.vessel_info_module = config.GetValue("VESINFO_MODULE", false);
-//			this.misc_module = config.GetValue("MISC_MODULE", false);
-//			this.celestial_body_info_module = config.GetValue("CELINFO_MODULE", false);
-//			this.body_op_show_orbital = config.GetValue("CELINFO_SHOW_OBTL", false);
-//			this.body_op_show_physical = config.GetValue("CELINFO_SHOW_PHYS", false);
-//			this.main_gui_minimized = config.GetValue("MAIN_GUI_MINIMIZED", false);
-//			this.hide_on_pause = config.GetValue("HIDE_ON_PAUSE", false);
-//			this.disable_power_usage = config.GetValue("DISABLE_POWER_USAGE", true);
-//			this.show_tooltips = config.GetValue("SHOW_TOOLTIPS", false);
-//			this.rendezvous_module = config.GetValue("SHOW_RENDEZVOUS_INFO", false);
-//			this.hide_vesreg_info = config.GetValue("USE_KSP_TARGET", false);
-//
-//			this.skin_index = config.GetValue ("SKIN_INDEX", 0);
-//
-//			this.user_lang = (languages)Enum.Parse(typeof(languages), config.GetValue ("USER_LANG", "EN"));
-//		}
-//
-//        private void write_settings()
-//        {
-//			Tools.PostDebugMessage ("VOID: Writing settings.");
-//			try
-//			{
-//				var config = KSP.IO.PluginConfiguration.CreateForType<VOIDFlightMaster> ();
-//				config.load ();
-//
-//				/*
-//				config.SetValue ("ConfigVersion", this.configVersion);
-//				config.SetValue("MAIN_WINDOW_POS", main_window_pos);
-//				config.SetValue("VOID_WINDOW_POS", void_window_pos);
-//				config.SetValue("ATMO_WINDOW_POS", atmo_window_pos);
-//				config.SetValue("TAD_WINDOW_POS", transfer_window_pos);
-//				config.SetValue("VESREG_WINDOW_POS", vessel_register_window_pos);
-//				config.SetValue("DATATIME_WINDOW_POS", data_logging_window_pos);
-//				config.SetValue("VESINFO_WINDOW_POS", vessel_info_window_pos);
-//				config.SetValue("MISC_WINDOW_POS", misc_window_pos);
-//				config.SetValue("CELINFO_WINDOW_POS", body_op_window_pos);
-//				config.SetValue("RENDEZVOUS_WINDOW_POS", rendezvous_info_window_pos);
-//				config.SetValue("ICON_POS", main_icon_pos);
-//				config.SetValue("HUD_MODULE", toggleHUDModule);
-//				config.SetValue("VOID_MODULE", void_module);
-//				config.SetValue("ATMO_MODULE", atmo_module);
-//				config.SetValue("TAD_MODULE", tad_module);
-//				config.SetValue("VESREG_MODULE", vessel_register_module);
-//				config.SetValue("DATATIME_MODULE", data_time_module);
-//				config.SetValue("VESINFO_MODULE", vessel_info_module);
-//				config.SetValue("MISC_MODULE", misc_module);
-//				config.SetValue("CELINFO_MODULE", celestial_body_info_module);
-//				config.SetValue("CELINFO_SHOW_OBTL", body_op_show_orbital);
-//				config.SetValue("CELINFO_SHOW_PHYS", body_op_show_physical);
-//				config.SetValue("MAIN_GUI_MINIMIZED", main_gui_minimized);
-//				config.SetValue("HIDE_ON_PAUSE", hide_on_pause);
-//				config.SetValue("SKIN_INDEX", skin_index);
-//				config.SetValue("DISABLE_POWER_USAGE", disable_power_usage);
-//				config.SetValue("SHOW_TOOLTIPS", show_tooltips);
-//				config.SetValue("SHOW_RENDEZVOUS_INFO", rendezvous_module);
-//				config.SetValue("USE_KSP_TARGET", hide_vesreg_info);
-//				config.SetValue("USER_LANG", user_lang);
-//				*/
-//
-//				try
-//				{
-//					config.SetValue ("ConfigVersion", this.configVersion);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue (\"ConfigVersion\", this.configVersion);");
-//				}
-//				try
-//				{
-//					config.SetValue("MAIN_WINDOW_POS", main_window_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"MAIN_WINDOW_POS\", main_window_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("VOID_WINDOW_POS", void_window_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"VOID_WINDOW_POS\", void_window_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("ATMO_WINDOW_POS", atmo_window_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"ATMO_WINDOW_POS\", atmo_window_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("TAD_WINDOW_POS", transfer_window_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"TAD_WINDOW_POS\", transfer_window_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("VESREG_WINDOW_POS", vessel_register_window_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"VESREG_WINDOW_POS\", vessel_register_window_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("DATATIME_WINDOW_POS", data_logging_window_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"DATATIME_WINDOW_POS\", data_logging_window_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("VESINFO_WINDOW_POS", vessel_info_window_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"VESINFO_WINDOW_POS\", vessel_info_window_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("MISC_WINDOW_POS", misc_window_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"MISC_WINDOW_POS\", misc_window_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("CELINFO_WINDOW_POS", body_op_window_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"CELINFO_WINDOW_POS\", body_op_window_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("RENDEZVOUS_WINDOW_POS", rendezvous_info_window_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"RENDEZVOUS_WINDOW_POS\", rendezvous_info_window_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("ICON_POS", main_icon_pos);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"ICON_POS\", main_icon_pos);");
-//				}
-//				try
-//				{
-//					config.SetValue("HUD_MODULE", toggleHUDModule);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"HUD_MODULE\", toggleHUDModule);");
-//				}
-//				try
-//				{
-//					config.SetValue("VOID_MODULE", void_module);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"VOID_MODULE\", void_module);");
-//				}
-//				try
-//				{
-//					config.SetValue("ATMO_MODULE", atmo_module);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"ATMO_MODULE\", atmo_module);");
-//				}
-//				try
-//				{
-//					config.SetValue("TAD_MODULE", tad_module);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"TAD_MODULE\", tad_module);");
-//				}
-//				try
-//				{
-//					config.SetValue("VESREG_MODULE", vessel_register_module);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"VESREG_MODULE\", vessel_register_module);");
-//				}
-//				try
-//				{
-//					config.SetValue("DATATIME_MODULE", data_time_module);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"DATATIME_MODULE\", data_time_module);");
-//				}
-//				try
-//				{
-//					config.SetValue("VESINFO_MODULE", vessel_info_module);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"VESINFO_MODULE\", vessel_info_module);");
-//				}
-//				try
-//				{
-//					config.SetValue("MISC_MODULE", misc_module);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"MISC_MODULE\", misc_module);");
-//				}
-//				try
-//				{
-//					config.SetValue("CELINFO_MODULE", celestial_body_info_module);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"CELINFO_MODULE\", celestial_body_info_module);");
-//				}
-//				try
-//				{
-//					config.SetValue("CELINFO_SHOW_OBTL", body_op_show_orbital);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"CELINFO_SHOW_OBTL\", body_op_show_orbital);");
-//				}
-//				try
-//				{
-//					config.SetValue("CELINFO_SHOW_PHYS", body_op_show_physical);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"CELINFO_SHOW_PHYS\", body_op_show_physical);");
-//				}
-//				try
-//				{
-//					config.SetValue("MAIN_GUI_MINIMIZED", main_gui_minimized);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"MAIN_GUI_MINIMIZED\", main_gui_minimized);");
-//				}
-//				try
-//				{
-//					config.SetValue("HIDE_ON_PAUSE", hide_on_pause);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"HIDE_ON_PAUSE\", hide_on_pause);");
-//				}
-//				try
-//				{
-//					config.SetValue("SKIN_INDEX", skin_index);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"SKIN_INDEX\", skin_index);");
-//				}
-//				try
-//				{
-//					config.SetValue("DISABLE_POWER_USAGE", disable_power_usage);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"DISABLE_POWER_USAGE\", disable_power_usage);");
-//				}
-//				try
-//				{
-//					config.SetValue("SHOW_TOOLTIPS", show_tooltips);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"SHOW_TOOLTIPS\", show_tooltips);");
-//				}
-//				try
-//				{
-//					config.SetValue("SHOW_RENDEZVOUS_INFO", rendezvous_module);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"SHOW_RENDEZVOUS_INFO\", rendezvous_module);");
-//				}
-//				try
-//				{
-//					config.SetValue("USE_KSP_TARGET", hide_vesreg_info);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"USE_KSP_TARGET\", hide_vesreg_info);");
-//				}
-//				try
-//				{
-//					config.SetValue("USER_LANG", user_lang);
-//				}
-//				catch (NullReferenceException)
-//				{
-//					UnityEngine.Debug.LogError("config.SetValue(\"USER_LANG\", user_lang);");
-//				}
-//				config.save ();
-//			}
-//			catch (NullReferenceException)
-//			{
-//				return;
-//			}
-//
-//			/* 
-//            string settings = "";
-//            settings += "MAIN WINDOW POS = " + main_window_pos.x + " , " + main_window_pos.y + "\n";
-//            settings += "VOID WINDOW POS = " + void_window_pos.x + " , " + void_window_pos.y + "\n";
-//            settings += "ATMO WINDOW POS = " + atmo_window_pos.x + " , " + atmo_window_pos.y + "\n";
-//            settings += "TAD WINDOW POS = " + transfer_window_pos.x + " , " + transfer_window_pos.y + "\n";
-//            settings += "VESREG WINDOW POS = " + vessel_register_window_pos.x + " , " + vessel_register_window_pos.y + "\n";
-//            settings += "DATATIME WINDOW POS = " + data_logging_window_pos.x + " , " + data_logging_window_pos.y + "\n";
-//            settings += "VESINFO WINDOW POS = " + vessel_info_window_pos.x + " , " + vessel_info_window_pos.y + "\n";
-//            settings += "MISC WINDOW POS = " + misc_window_pos.x + " , " + misc_window_pos.y + "\n";
-//            settings += "CELINFO WINDOW POS = " + body_op_window_pos.x + " , " + body_op_window_pos.y + "\n";
-//            settings += "RENDEZVOUS WINDOW POS = " + rendezvous_info_window_pos.x + " , " + rendezvous_info_window_pos.y + "\n";
-//            settings += "ICON POS = " + main_icon_pos.x + " , " + main_icon_pos.y + "\n";
-//            settings += "HUD MODULE = " + toggleHUDModule + "\n";
-//            settings += "VOID MODULE = " + void_module + "\n";
-//            settings += "ATMO MODULE = " + atmo_module + "\n";
-//            settings += "TAD MODULE = " + tad_module + "\n";
-//            settings += "VESREG MODULE = " + vessel_register_module + "\n";
-//            settings += "DATATIME MODULE = " + data_time_module + "\n";
-//            settings += "VESINFO MODULE = " + vessel_info_module + "\n";
-//            settings += "MISC MODULE = " + misc_module + "\n";
-//            settings += "CELINFO MODULE = " + celestial_body_info_module + "\n";
-//            settings += "CELINFO SHOW OBTL = " + body_op_show_orbital + "\n";
-//            settings += "CELINFO SHOW PHYS = " + body_op_show_physical + "\n";
-//            settings += "MAIN GUI MINIMIZED = " + main_gui_minimized + "\n";
-//            settings += "HIDE ON PAUSE = " + hide_on_pause + "\n";
-//			settings += "HUD COLOR = " + moduleHUD.ColorIndex + "\n";
-//            settings += "SKIN INDEX = " + skin_index + "\n";
-//            settings += "DISABLE POWER USAGE = " + disable_power_usage + "\n";
-//            settings += "SHOW TOOLTIPS = " + show_tooltips + "\n";
-//            settings += "SHOW RENDEZVOUS INFO = " + rendezvous_module + "\n";
-//            settings += "USE KSP TARGET = " + hide_vesreg_info + "\n";
-//            settings += "USER LANG = " + user_lang + "\n";
-//            KSP.IO.File.WriteAllText<VOID>(settings, "VOID.cfg", null);
-//            */
-//        }
-//
 //        private void start_GUI()
 //        {
 //            RenderingManager.AddToPostDrawQueue(3, new Callback(draw_GUI));	//start the GUI
@@ -883,162 +398,7 @@
 //            gui_styles_set = true;
 //		}
 //
-//        private void body_OP_show_orbital_info(CelestialBody body)
-//        {
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label((body.orbit.ApA / 1000).ToString("##,#") + "km", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label(Tools.ConvertInterval(body.orbit.timeToAp), label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label((body.orbit.PeA / 1000).ToString("##,#") + "km", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label(Tools.ConvertInterval(body.orbit.timeToPe), label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label((body.orbit.semiMajorAxis / 1000).ToString("##,#") + "km", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label(body.orbit.eccentricity.ToString("F4") + "", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label(Tools.ConvertInterval(body.orbit.period), label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label(Tools.ConvertInterval(body.rotationPeriod), label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label((body.orbit.orbitalSpeed / 1000).ToString("F2") + "km/s", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//			// Toadicus edit: convert mean anomaly into degrees.
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label((body.orbit.meanAnomaly * 180d / Math.PI).ToString("F3") + "°", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label(body.orbit.trueAnomaly.ToString("F3") + "°", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//			// Toadicus edit: convert eccentric anomaly into degrees.
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label((body.orbit.eccentricAnomaly * 180d / Math.PI).ToString("F3") + "°", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label(body.orbit.inclination.ToString("F3") + "°", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label(body.orbit.LAN.ToString("F3") + "°", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label(body.orbit.argumentOfPeriapsis.ToString("F3") + "°", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (body.bodyName == "Sun") GUILayout.Label("N/A", label_txt_right, GUILayout.ExpandWidth(true));
-//            else
-//            {
-//                string body_tidally_locked = "No";
-//                if (body.tidallyLocked) body_tidally_locked = "Yes";
-//                GUILayout.Label(body_tidally_locked, label_txt_right, GUILayout.ExpandWidth(true));
-//            }
-//            //GUILayout.EndHorizontal();
-//        }
-//
-//        private void body_OP_show_physical_info(CelestialBody body)
-//        {
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label((body.Radius / 1000).ToString("##,#") + "km", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label(((Math.Pow((body.Radius), 2) * 4 * Math.PI) / 1000).ToString("0.00e+00") + "km²", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            // divide by 1000 to convert m to km
-//            GUILayout.Label((((4d / 3) * Math.PI * Math.Pow(body.Radius, 3)) / 1000).ToString("0.00e+00") + "km³", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(((4 / 3) * Math.PI * Math.Pow((vessel.mainBody.Radius / 1000), 3)).ToString(), txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label(body.Mass.ToString("0.00e+00") + "kg", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            double p = body.Mass / (Math.Pow(body.Radius, 3) * (4d / 3) * Math.PI);
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label(p.ToString("##,#") + "kg/m³", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            if (name == "Sun") GUILayout.Label(body.sphereOfInfluence.ToString(), label_txt_right, GUILayout.ExpandWidth(true));
-//            else GUILayout.Label((body.sphereOfInfluence / 1000).ToString("##,#") + "km", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label(body.orbitingBodies.Count.ToString(), label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //show # artificial satellites
-//            int num_art_sats = 0;
-//            foreach (Vessel v in FlightGlobals.Vessels)
-//            {
-//                if (v.mainBody == body && v.situation.ToString() == "ORBITING") num_art_sats++;
-//            }
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label(num_art_sats.ToString(), label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            double g_ASL = (G_constant * body.Mass) / Math.Pow(body.Radius, 2);
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label(Tools.MuMech_ToSI(g_ASL) + "m/s²", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//			GUILayout.Label("≈ " + Tools.MuMech_ToSI(body.maxAtmosphereAltitude) + "m", label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            string O2 = "No";
-//            if (body.atmosphereContainsOxygen == true) O2 = "Yes";
-//            GUILayout.Label(O2, label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            string ocean = "No";
-//            if (body.ocean == true) ocean = "Yes";
-//            GUILayout.Label(ocean, label_txt_right, GUILayout.ExpandWidth(true));
-//            //GUILayout.EndHorizontal();
-//        }
+
 //
 //        private void tad_targeting(CelestialBody body)
 //        {
@@ -1358,272 +718,6 @@
 //			GUILayout.Label("Biome:");
 //			GUILayout.Label(Tools.Toadicus_GetAtt(vessel).name, label_txt_right);
 //			GUILayout.EndHorizontal();
-//
-//            GUILayout.EndVertical();
-//            GUI.DragWindow();
-//        }
-//
-//        private void tad_gui(int window_id)
-//        {
-//            GUILayout.BeginVertical();
-//
-//            if (vessel.mainBody.name == "Sun")  //Vessel is orbiting the Sun
-//            {
-//                foreach (CelestialBody body in vessel.mainBody.orbitingBodies)
-//                {
-//                    GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//                    if (GUILayout.Button(body.bodyName))
-//                    {
-//                        //add or remove this body to this list of bodies to display more info on
-//                        if (tad_selected_bodies.Contains(body)) tad_selected_bodies.Remove(body);
-//                        else tad_selected_bodies.Add(body);
-//                    }
-//                    GUILayout.Label("Inclined " + body.orbit.inclination.ToString("F3") + "°", GUILayout.ExpandWidth(false));
-//                    GUILayout.EndHorizontal();
-//
-//                    if (tad_selected_bodies.Contains(body))
-//                    {
-//                        display_transfer_angles_SUN2PLANET(body);  //show phase angles for each selected body
-//                        tad_targeting(body);    //display Set/Unset Target button for each selected body
-//                    }
-//                }
-//            }
-//            else if (vessel.mainBody.referenceBody.name == "Sun")	//Vessel is orbiting a planet
-//            {
-//                foreach (CelestialBody body in vessel.mainBody.referenceBody.orbitingBodies)
-//                {
-//                    if (body.name != vessel.mainBody.name)	// show other planets
-//                    {
-//                        GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//                        if (GUILayout.Button(body.bodyName))
-//                        {
-//                            //add or remove this body to this list of bodies to display more info on
-//                            if (tad_selected_bodies.Contains(body)) tad_selected_bodies.Remove(body);
-//                            else tad_selected_bodies.Add(body);
-//                        }
-//                        GUILayout.Label("Inclined " + body.orbit.inclination.ToString("F3") + "°", GUILayout.ExpandWidth(false));
-//                        GUILayout.EndHorizontal();
-//
-//                        if (tad_selected_bodies.Contains(body))
-//                        {
-//                            display_transfer_angles_PLANET2PLANET(body);
-//                            tad_targeting(body);    //display Set/Unset Target button
-//                        }
-//                    }
-//                }
-//                foreach (CelestialBody body in vessel.mainBody.orbitingBodies)	// show moons
-//                {
-//                    GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//                    if (GUILayout.Button(body.bodyName))
-//                    {
-//                        //add or remove this body to this list of bodies to display more info on
-//                        if (tad_selected_bodies.Contains(body)) tad_selected_bodies.Remove(body);
-//                        else tad_selected_bodies.Add(body);
-//                    }
-//                    GUILayout.Label("Inclined " + body.orbit.inclination.ToString("F3") + "°", GUILayout.ExpandWidth(false));
-//                    GUILayout.EndHorizontal();
-//
-//                    if (tad_selected_bodies.Contains(body))
-//                    {
-//                        display_transfer_angles_PLANET2MOON(body);
-//                        tad_targeting(body);    //display Set/Unset Target button
-//                    }
-//                }
-//            }
-//            else if (vessel.mainBody.referenceBody.referenceBody.name == "Sun")	// Vessel is orbiting a moon
-//            {
-//                foreach (CelestialBody body in vessel.mainBody.referenceBody.orbitingBodies)
-//                {
-//                    if (body.name != vessel.mainBody.name)	// show other moons
-//                    {
-//                        GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//                        if (GUILayout.Button(body.bodyName))
-//                        {
-//                            //add or remove this body to this list of bodies to display more info on
-//                            if (tad_selected_bodies.Contains(body)) tad_selected_bodies.Remove(body);
-//                            else tad_selected_bodies.Add(body);
-//                        }
-//                        GUILayout.Label("Inclined " + body.orbit.inclination.ToString("F3") + "°", GUILayout.ExpandWidth(false));
-//                        GUILayout.EndHorizontal();
-//
-//                        if (tad_selected_bodies.Contains(body))
-//                        {
-//                            display_transfer_angles_MOON2MOON(body);
-//                            tad_targeting(body);    //display Set/Unset Target button
-//                        }
-//                    }
-//                }
-//            }
-//            GUILayout.EndVertical();
-//            GUI.DragWindow();
-//        }
-//
-//        private void test_gui(int window_id)
-//        {
-//            GUILayout.BeginVertical();
-//
-//            GUILayout.Label("FlightGlobals.fetch.vesselTargetMode = " + FlightGlobals.fetch.vesselTargetMode.ToString());
-//            //if (debugging) Debug.Log("[VOID] vesselTargetMode OK");
-//            if (FlightGlobals.fetch.VesselTarget != null)
-//            {
-//                GUILayout.Label("VesselTarget == " + FlightGlobals.fetch.VesselTarget.ToString());
-//                //if (debugging) Debug.Log("[VOID] VesselTarget OK");
-//                GUILayout.Label("vesselTargetTransform == " + FlightGlobals.fetch.vesselTargetTransform.ToString());
-//                //if (debugging) Debug.Log("[VOID] vesselTargetTransform OK");
-//                GUILayout.Label("vesselTargetDirection == " + FlightGlobals.fetch.vesselTargetDirection.ToString());
-//                //if (debugging) Debug.Log("[VOID] vesselTargetDirection OK");
-//                GUILayout.Label("vesselTargetDelta == " + FlightGlobals.fetch.vesselTargetDelta.ToString());
-//                //if (debugging) Debug.Log("[VOID] vesselTargetDelta OK");
-//            }
-//            else GUILayout.Label("VesselTarget == null");
-//
-//
-//            //check whats in here
-//            //GUI.skin.font.fontNames
-//            //foreach (String f in GUI.skin.font.fontNames)
-//            //{
-//            //    GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //    GUILayout.Label(f);
-//            //    GUILayout.EndHorizontal();
-//            //}
-//
-//
-//
-//
-//            //fail
-//            //if (Event.current.keyCode == KeyCode.Z)
-//            //{
-//            //    FlightCtrlState s = new FlightCtrlState();
-//            //    vessel.FeedInputFeed();
-//            //    s.mainThrottle = 1;
-//            //}
-//
-//
-//
-//            //MapView.MapIsEnabled = false;
-//            //fail
-//
-//
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(DateTime.Now.ToString("d MMMM"));
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label("situation:", GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(vessel.situation.ToString(), label_txt_right);
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label("vessel.missionTime:", GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(vessel.missionTime.ToString(), label_txt_right);
-//            //GUILayout.EndHorizontal();
-//
-//            //Orbit target_orbit = new Orbit();
-//            //target_orbit = FlightGlobals.fetch.VesselTarget.GetOrbit();
-//
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label("target_orbit.altitude", GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(target_orbit.altitude.ToString("F2"), label_txt_right);
-//            //GUILayout.EndHorizontal();
-//
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label("vessel.packed", GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(vessel.packed.ToString(), label_txt_right);
-//            //GUILayout.EndHorizontal();
-//
-//
-//            //q = 1/2 p v^2
-//            //p = local air density
-//            //v = velocity
-//            //part.dynamicPressureAtm
-//            double q = .5 * vessel.atmDensity * Math.Pow(vessel.orbit.vel.magnitude, 2);
-//            GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label("dynamic pressure q:", GUILayout.ExpandWidth(true));
-//            GUILayout.Label(q.ToString("F4"), label_txt_right);
-//            GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label("part.dynamicPressureAtm:", GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(part.dynamicPressureAtm.ToString("F3"), label_txt_right);
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label("part.staticPressureAtm:", GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(part.staticPressureAtm.ToString("F3"), label_txt_right);
-//            //GUILayout.EndHorizontal();
-//
-//            GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label("vessel.staticPressure:", GUILayout.ExpandWidth(true));
-//            GUILayout.Label(vessel.staticPressure.ToString("F3"), label_txt_right);
-//            GUILayout.EndHorizontal();
-//
-//
-//
-//
-//
-//            GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label("FlightLogger.getMissionStats():", GUILayout.ExpandWidth(true));
-//            GUILayout.Label(FlightLogger.getMissionStats(), label_txt_right);
-//            GUILayout.EndHorizontal();
-//
-//            //parse this out
-//            //"Total Distance Traveled: 552m"
-//            GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//
-//            string temp = FlightLogger.getMissionStats();
-//            temp = temp.Substring(temp.IndexOf("Total Distance Traveled:"));
-//            //GUILayout.Label(temp, GUILayout.ExpandWidth(true));
-//            //int colon_pos = temp.IndexOf(":");
-//            temp = temp.Substring(temp.IndexOf(":") + 1);
-//            //GUILayout.Label(temp, GUILayout.ExpandWidth(true));
-//            int m_pos = temp.IndexOf("m");
-//            temp = temp.Substring(0, m_pos + 1);
-//            temp = temp.Trim();
-//
-//            GUILayout.Label("Distance traveled:", GUILayout.ExpandWidth(true));
-//            GUILayout.Label(temp, label_txt_right);
-//
-//            GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label("power_request_interval:", GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(power_request_interval.ToString(), label_txt_right);
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label("power_request_amount:", GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(power_request_amount.ToString(), label_txt_right);
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label("Tools.MuMech_get_heading():", GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(Tools.MuMech_get_heading().ToString("F2"), label_txt_right);
-//            //GUILayout.EndHorizontal();
-//
-//            //GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            //GUILayout.Label("num_fixedupdate_calls:", GUILayout.ExpandWidth(true));
-//            //GUILayout.Label(num_fixedupdate_calls.ToString(), label_txt_right);
-//            //GUILayout.EndHorizontal();
-//
-//            GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label("vessel.flightIntegrator.currentDragForce:", GUILayout.ExpandWidth(true));
-//            GUILayout.Label(vessel.flightIntegrator.currentDragForce.ToString(), label_txt_right);
-//            GUILayout.EndHorizontal();
-//
-//            GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label("vessel.flightIntegrator.drag:", GUILayout.ExpandWidth(true));
-//            GUILayout.Label(vessel.flightIntegrator.drag.ToString(), label_txt_right);
-//            GUILayout.EndHorizontal();
-//
-//            GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));
-//            GUILayout.Label("vessel.flightIntegrator.dragArea:", GUILayout.ExpandWidth(true));
-//            GUILayout.Label(vessel.flightIntegrator.dragArea.ToString(), label_txt_right);
-//            GUILayout.EndHorizontal();
-//
-//            //
 //
 //            GUILayout.EndVertical();
 //            GUI.DragWindow();