private void setEquipment(LabEquipment er) { leq = er; status = leq.getName(); if (leq.getType() == EquipmentRacks.NONE) { Events["chooseEquipment"].guiName = Localizer.GetStringByTag("#ne_Add_Lab_Equipment"); } else { Events["chooseEquipment"].guiName = Localizer.GetStringByTag("#ne_Remove_Equipment"); } RefreshMassAndCost(); setTexture(leq); }
private void setEquipment(LabEquipment er) { leq = er; status = leq.getName(); if (leq.getType() == EquipmentRacks.NONE) { Events["chooseEquipment"].guiName = "Add Lab Equipment"; part.mass = EMPTY_MASS; } else { Events["chooseEquipment"].guiName = "Remove Equipment"; part.mass += er.getMass(); } setTexture(leq); }