internal override string GetLabel(Vessel vessel, EvaluationContext context, SubRequirementState state) { EquipmentRunningState equipmentRunningState = (EquipmentRunningState)state; string label = EquipmentData.StatusInfo(equipmentRunningState.equipmentState); if (!string.IsNullOrEmpty(shortDescription)) { label = shortDescription + ": " + label; } return(label); }
public virtual void Update() { Events["ToggleEvent"].guiName = Lib.StatusToggle(Lib.Ellipsis(title, 25), EquipmentData <TModule, TData> .StatusInfo(moduleData.state)); }