Exemplo n.º 1
0
 private void updateStatus()
 {
     if (!doResearch)
     {
         displayStatusMessage(Localizer.GetStringByTag("#ne_Paused"));
     }
     else if (minimumCrew > 0 && part.protoModuleCrew.Count < minimumCrew)
     {
         displayStatusMessage(Localizer.Format("#ne_Understaffed_1_of_2", part.protoModuleCrew.Count, minimumCrew));
     }
     else if (OMSExperiment.checkBoring(vessel, false))
     {
         displayStatusMessage(Localizer.GetStringByTag("#ne_Go_to_space"));
     }
     else
     {
         updateLabStatus();
     }
 }
Exemplo n.º 2
0
 private void updateStatus()
 {
     if (!doResearch)
     {
         displayStatusMessage("Paused");
     }
     else if (minimumCrew > 0 && part.protoModuleCrew.Count < minimumCrew)
     {
         displayStatusMessage("Understaffed (" + part.protoModuleCrew.Count + "/" + minimumCrew + ")");
     }
     else if (OMSExperiment.checkBoring(vessel, false))
     {
         displayStatusMessage("Go to space!");
     }
     else
     {
         updateLabStatus();
     }
 }
Exemplo n.º 3
0
 public override void start(startCallback cbMethod)
 {
     NE_Helper.log("ResExppStep.start()");
     if (canStart())
     {
         Lab lab = ((LabEquipment)exp.store).getLab();
         if (lab != null && !OMSExperiment.checkBoring(lab.vessel, true))
         {
             NE_Helper.log("ResExppStep.start(): create Resource");
             ((LabEquipment)exp.store).createResourceInLab(res, amount);
             cbMethod(true);
             return;
         }
         else
         {
             NE_Helper.logError("ResExppStep.start(): Lab null or boring. Boring: " + OMSExperiment.checkBoring(lab.vessel, true));
         }
     }
     NE_Helper.log("ResExppStep.start(): can NOT start");
     cbMethod(false);
 }
Exemplo n.º 4
0
 internal virtual bool canStart()
 {
     return(exp.state == ExperimentState.INSTALLED && !OMSExperiment.checkBoring(exp.store.getPart().vessel));
 }
Exemplo n.º 5
0
 protected virtual bool isActive()
 {
     return(doResearch && part.protoModuleCrew.Count >= minimumCrew && !OMSExperiment.checkBoring(vessel, false));
 }
Exemplo n.º 6
0
 protected override bool isActive()
 {
     return(doResearch && isRunning() && part.protoModuleCrew.Count >= minimumCrew && !OMSExperiment.checkBoring(vessel, false));
 }