public void OnDisable() { SettingsLoader.SaveAll(); GUIHandler.deleteButton(); MainProgram.ForceDeleteKACAlarm(); }
public void Update() { if (!Settings.KACAlarmMode) { GUIHandler.ButtonTextureChanger(); } if (Settings.KACAlarmMode) { MainProgram.DeleteKACAlarmOnTime(); } if (!Settings.KACAlarmMode && GUIHandler.ButtonPressed && !DataManager.Scene(GameScenes.SPACECENTER) && FlightGlobals.ActiveVessel.patchedConicSolver.maneuverNodes.Count > 0) { if (Settings.StopWarp) { MainProgram.DecreaseWarp(); } if (Settings.AlertSound && MainProgram.BurnAlert(Settings.AlertStartTime) && MainProgram.BurnAlert(Settings.AlertStartTime - 3) == false && DataManager.ThrottleOn() == false) { BeepAlarm.PlaySound(); } if (Settings.EndBurnAlert && MainProgram.endAlert()) { BeepAlarm.PlaySound(); } } }