public override void Awake()
 {
     base.Awake();
     width  = 600;
     height = 400;
     GameEvents.onEditorShipModified.Add(OnShipModified);
     GameEvents.onEditorLoad.Add(OnShipLoad);
     GameEvents.onEditorRestart.Add(Reset);
     Available = false;
     //module availability
     HasMacroProcessor   = TCAModulesDatabase.ModuleAvailable(typeof(MacroProcessor));
     HasVTOLAssist       = TCAModulesDatabase.ModuleAvailable(typeof(VTOLAssist));
     HasVTOLControls     = TCAModulesDatabase.ModuleAvailable(typeof(VTOLControl));
     HasFlightStabilizer = TCAModulesDatabase.ModuleAvailable(typeof(FlightStabilizer));
     HasAltitudeControl  = TCAModulesDatabase.ModuleAvailable(typeof(AltitudeControl));
     //update TCA part infos
     foreach (var ap in PartLoader.LoadedPartsList)
     {
         foreach (var mi in ap.moduleInfos)
         {
             if (mi.moduleName != ModuleTCA.TCA_NAME)
             {
                 continue;
             }
             mi.info        = TCAScenario.ModuleStatusString();
             mi.primaryInfo = "<b>TCA:</b> " + mi.info;
         }
     }
 }
Exemple #2
0
        static void UpdatePartsInfo()
        {
            //update TCA part infos
            var info = TCAScenario.ModuleStatusString();

            foreach (var ap in PartLoader.LoadedPartsList)
            {
                foreach (var mi in ap.moduleInfos)
                {
                    if (mi.moduleName != ModuleTCA.TCA_NAME)
                    {
                        continue;
                    }
                    mi.primaryInfo = "<b>TCA:</b> " + info;
                    mi.info        = info;
                }
            }
        }
 public string GetPrimaryField()
 {
     return("<b>TCA:</b> " + TCAScenario.ModuleStatusString());
 }
Exemple #4
0
 public string GetPrimaryField() => "<b>TCA:</b> " + TCAScenario.ModuleStatusString();