public override void OnLoad(ConfigNode node) { try { FlightRecorder.LoadRecordings(node); MissionController.LoadMissions(node); GUI.Reset(); } catch (Exception e) { Debug.LogError("[KSTS] OnLoad(): " + e.ToString()); } }
public override void OnLoad(ConfigNode node) { Log.Warning("KSTS: OnLoad"); try { FlightRecorder.LoadRecordings(node); MissionController.LoadMissions(node); if (node.HasValue("useKACifAvailable")) { MissionController.useKACifAvailable = bool.Parse(node.GetValue("useKACifAvailable")); } if (node.HasValue("useStockAlarmClock")) { MissionController.useStockAlarmClock = bool.Parse(node.GetValue("useStockAlarmClock")); } GUI.Reset(); } catch (Exception e) { Debug.LogError("OnLoad(): " + e.ToString()); } }