Add support for having a contextMenu class add more then a single entry, start

work on damage pattern selection menu
This commit is contained in:
cncfanatics
2010-10-04 19:55:58 +02:00
parent 10b5c5b7e7
commit 25c74e1f4c
5 changed files with 46 additions and 10 deletions

View File

@@ -122,9 +122,9 @@ class FittingView(d.Display):
if sel != -1:
mod = self.mods[self.GetItemData(sel)]
if not mod.isEmpty:
contexts.add("module")
contexts.append("module")
if mod.charge is not None and "ammo" not in contexts:
contexts.add("ammo")
contexts.append("ammo")
selection.append(mod)