Add "Can fit" grouping

This commit is contained in:
Ryan Holmes
2019-03-21 19:47:31 -04:00
parent 5940625e24
commit 1603201166
3 changed files with 20 additions and 3 deletions

View File

@@ -207,8 +207,15 @@ AttrGroupDict = {
"fighterSquadronOrbitRange",
]
},
GuiAttrGroup.SHIP_GROUP : {
"label" : "Can Fit To",
"attributes": []
},
}
AttrGroupDict[GuiAttrGroup.SHIP_GROUP]["attributes"].extend([("canFitShipGroup{:02d}".format(i+1), "Group") for i in range(20)])
AttrGroupDict[GuiAttrGroup.SHIP_GROUP]["attributes"].extend([("canFitShipType{:01d}".format(i+1), "Ship") for i in range(20)])
Group1 = [
GuiAttrGroup.FITTING,
GuiAttrGroup.STRUCTURE,
@@ -222,6 +229,7 @@ Group1 = [
GuiAttrGroup.ON_DEATH,
GuiAttrGroup.JUMP_SYSTEMS,
GuiAttrGroup.PROPULSIONS,
GuiAttrGroup.SHIP_GROUP
]
CategoryGroups = {