private void drawManifestGUI(int id) { GUILayout.BeginVertical(); manifestScrollPos = GUILayout.BeginScrollView(manifestScrollPos, GUILayout.Width(width - 20), GUILayout.Height(getHeight(storageSlots.Count) - fixedHeight)); string text = ""; foreach (ExperimentStorage e in storageSlots) { text += "<b>" + e.identifier + "</b>\n"; if (e.isEmpty()) { text += "\t empty\n"; } else { ExperimentData exp = e.getStoredExperimentData(); text += exp.getDescription("\t ") + "\n"; text += "\t State: " + exp.getStateString() + "\n"; } text += "\n"; } GUI.skin.label.wordWrap = true; GUILayout.Label(text, GUILayout.Height((slotHeight * storageSlots.Count) - 10)); GUILayout.EndScrollView(); if (GUILayout.Button("Close")) { showManifest = false; } GUILayout.EndVertical(); GUI.DragWindow(); }
public override void installExperiment(ExperimentData exp) { if (exp.getEquipmentNeeded() == EquipmentRacks.EXPOSURE) { exposureSlot.installExperiment(exp); experimentName = exp.getAbbreviation() + ": " + exp.getStateString(); } }