コード例 #1
0
 public override void OnLoad(ConfigNode node)
 {
     try
     {
         FlightRecorder.LoadRecordings(node);
         MissionController.LoadMissions(node);
         GUI.Reset();
     }
     catch (Exception e)
     {
         Debug.LogError("[KSTS] OnLoad(): " + e.ToString());
     }
 }
コード例 #2
0
        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());
            }
        }