public override string GetPopupText() { var txt = DisplayUtils.MachineDisplay(MachineName); var quantumStorageController = StorageIoService.GetStorageController(); if (quantumStorageController != null && quantumStorageController.IsOperating()) { txt += DisplayUtils.StorageDisplay(quantumStorageController.GetMachineStorage()); } if (ControllerPos[0] == 0 && ControllerPos[1] == 0 && ControllerPos[2] == 0 || quantumStorageController == null) { txt += "QUANTUM STORAGE CONTROLLER NOT FOUND.\n"; } if (quantumStorageController != null && !quantumStorageController.HasPower()) { txt += "QUANTUM STORAGE CONTROLLER HAS NO POWER.\n"; } if (Input.GetButtonDown("Interact") && UIManager.AllowInteracting) { UIManager.ForceNGUIUpdate = 0.1f; AudioHUDManager.instance.HUDIn(); } return(txt); }
public override string GetPopupText() { string txt = DisplayUtils.MachineDisplay(MachineName); txt += DisplayUtils.PowerDisplay(_machinePower); if (IsOperating()) { txt += DisplayUtils.StorageDisplay(_machineStorage); } if (_anotherControllerDetected) { txt = "ANOTHER CONTROLLER DETECTED - ONLY ONE CONTROLLER CAN BE PRESENT\n"; } txt += "Q to "; txt += _notifications ? "disable" : "enable"; txt += " notifications.\n"; if (Input.GetButtonDown("Interact") && (UIManager.AllowInteracting)) { UIManager.ForceNGUIUpdate = 0.1f; AudioHUDManager.instance.HUDIn(); } if (Input.GetKeyDown(KeyCode.Q)) { ToggleNotifications(); } return(txt); }