コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }