public void chooseEquipment() { if (expData.getId() == "") { availableExperiments = ExperimentFactory.getAvailableExperiments(type); showAddWindow(); } else { removeExperimentData(); Events["chooseEquipment"].guiName = Localizer.GetStringByTag("#ne_Add_Experiment"); } }
public void chooseEquipment() { if (expData.getId() == "") { availableExperiments = ExperimentFactory.getAvailableExperiments(type); windowID = WindowCounter.getNextWindowID(); showGui = 1; } else { removeExperimentData(); Events["chooseEquipment"].guiName = "Add Experiment"; } }
private void setExperiment(ExperimentData experimentData) { NE_Helper.log("MOVExp.setExp() id: " + experimentData.getId()); expData = experimentData; //contains = expData.getAbbreviation(); expData.setStorage(this); experimentID = expData.getId(); experiment = ResearchAndDevelopment.GetExperiment(experimentID); experimentActionName = "Results"; resetActionName = "Throw Away Results"; reviewActionName = "Review " + expData.getAbbreviation() + " Results"; useStaging = false; useActionGroups = true; hideUIwhenUnavailable = true; resettable = false; resettableOnEVA = false; dataIsCollectable = false; collectActionName = "Collect Results"; interactionRange = 1.2f; xmitDataScalar = 0.05f; if (chanceTexture) { setTexture(expData); } }
internal void installExperiment(ExperimentData exp) { this.exp = exp; exp.installed(this); GameObject ego = lab.getExperimentGO(exp.getId()); if (ego != null) { ego.SetActive(true); } }
private void loadExperiment(ExperimentData experimentData) { this.exp = experimentData; exp.load(this); GameObject ego = lab.getExperimentGO(exp.getId()); if (ego != null) { ego.SetActive(true); } }
internal void moveExperiment(Vessel vessel) { if (exp != null) { exp.move(vessel); } GameObject ego = lab.getExperimentGO(exp.getId()); if (ego != null) { ego.SetActive(false); } }
/// <summary> /// Sets or clears the stored experiment /// </summary> /// <param name="experimentData">Experiment data.</param> private void setExperiment(ExperimentData experimentData) { NE_Helper.log("MOVExp.setExp() id: " + experimentData.getId()); expData = experimentData; //contains = expData.getAbbreviation(); expData.setStorage(this); experimentID = expData.getId(); if (expData.getId() == "") { experiment = null; } else { experiment = ResearchAndDevelopment.GetExperiment(experimentID); } experimentActionName = Localizer.GetStringByTag("#ne_Results"); resetActionName = Localizer.GetStringByTag("#ne_Discard_Results"); reviewActionName = Localizer.Format("#ne_Review_1_Results", expData.getAbbreviation()); useStaging = false; useActionGroups = true; hideUIwhenUnavailable = true; resettable = false; resettableOnEVA = false; dataIsCollectable = false; collectActionName = Localizer.GetStringByTag("#ne_Collect_Results"); interactionRange = 1.2f; xmitDataScalar = 0.05f; if (chanceTexture) { setTexture(expData); } RefreshMassAndCost(); }