internal void showDialog(List <string> avilableSubjects, KerbalResearchExperimentData experimentData, ExperimentStep.startCallback cbMethod) { this.avilableSubjects = avilableSubjects; exp = experimentData; this.cbMethod = cbMethod; windowID = WindowCounter.getNextWindowID(); showGui = true; }
public void storageManifest() { storageSlots = new List <ExperimentStorage>(part.GetComponents <ExperimentStorage>()); windowID = WindowCounter.getNextWindowID(); int height = getHeight(storageSlots.Count); manifestWindowRect = new Rect(Screen.width / 2 - width, Screen.height / 2 - (height / 2), width, height); showManifest = true; }
internal void showDialog(List <ExperimentStorage> targets, ExperimentData experimentData) { NE_Helper.log("start"); this.targets = targets; exp = experimentData; NE_Helper.log("init done"); windowID = WindowCounter.getNextWindowID(); showGui = true; }
public void finalize() { if (type == ExperimentFactory.KEMINI_EXPERIMENTS) { DeployExperiment(); } else { windowID = WindowCounter.getNextWindowID(); showGui = 2; } }
public void chooseEquipment() { if (expData.getId() == "") { availableExperiments = ExperimentFactory.getAvailableExperiments(type); windowID = WindowCounter.getNextWindowID(); showGui = 1; } else { removeExperimentData(); Events["chooseEquipment"].guiName = "Add Experiment"; } }
public void installExperiment() { availableLabs = expData.getFreeLabsWithEquipment(part.vessel); if (availableLabs.Count > 0) { if (availableLabs.Count == 1) { installExperimentInLab(availableLabs[0]); } else { windowID = WindowCounter.getNextWindowID(); showGui = 3; } } else { NE_Helper.logError("Experiment install: No lab found"); } }