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(); } }
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(); } }
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); }
internal virtual bool canStart() { return(exp.state == ExperimentState.INSTALLED && !OMSExperiment.checkBoring(exp.store.getPart().vessel)); }
protected virtual bool isActive() { return(doResearch && part.protoModuleCrew.Count >= minimumCrew && !OMSExperiment.checkBoring(vessel, false)); }
protected override bool isActive() { return(doResearch && isRunning() && part.protoModuleCrew.Count >= minimumCrew && !OMSExperiment.checkBoring(vessel, false)); }