internal void ApplySettings() { Utilities.Log_Debug("TSTSettings ApplySettings Start"); if (HighLogic.CurrentGame != null) { TST_SettingsParms TST_SettingsParms = HighLogic.CurrentGame.Parameters.CustomParams <TST_SettingsParms>(); if (TST_SettingsParms != null) { TSTMenu GUI = TSTMenu.Instance ?? null; ChemwinSml = TST_SettingsParms.ChemwinSml; ChemwinLge = TST_SettingsParms.ChemwinLge; TelewinSml = TST_SettingsParms.TelewinSml; TelewinLge = TST_SettingsParms.TelewinLge; if (UseAppLauncher != TST_SettingsParms.UseAppLauncher) { UseAppLauncher = TST_SettingsParms.UseAppLauncher; if (GUI != null) { GUI.TSTMenuAppLToolBar.chgAppIconStockToolBar(UseAppLauncher); } } debugging = TST_SettingsParms.debugging; Utilities.debuggingOn = debugging; Tooltips = TST_SettingsParms.ToolTips; maxChemCamContracts = TST_SettingsParms.maxChemCamContracts; photoOnlyChemCamContracts = TST_SettingsParms.photoOnlyChemCamContracts; ZoomSkyBox = TST_SettingsParms.ZoomSkyBox; } else { Utilities.Log_Debug("DFSettings ApplySettings Settings Params Not Set!"); } } else { Utilities.Log_Debug("DFSettings ApplySettings CurrentGame is NULL!"); } Utilities.Log_Debug("DFSettings ApplySettings End"); }
public TSTMenu() { Instance = this; }