Skip to content

Commit

Permalink
Fix #71
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed Apr 8, 2014
1 parent 23e6331 commit 631d97e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gui/builtinContextMenus/moduleAmmoPicker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from gui.contextMenu import ContextMenu
import gui.mainFrame
import service
Expand Down Expand Up @@ -112,7 +113,7 @@ def addCharge(self, menu, charge):

def addSeperator(self, m, text):
id = wx.NewId()
m.Append(id, "--- %s ---" % text)
m.Append(id, u'─ %s ─' % text)
m.Enable(id, False)

def getSubMenu(self, context, selection, menu, i):
Expand All @@ -132,6 +133,11 @@ def getSubMenu(self, context, selection, menu, i):
sub = None
self.charges.sort(key=self.turretSorter)
for charge in self.charges:
# fix issue 71 - will probably have to change if CCP adds more Orbital ammo
if "Orbital" in charge.name:
item = self.addCharge(m, charge)
items.append(item)
continue
currBase = charge.name.rsplit()[-2:]
currRange = charge.getAttribute("weaponRangeMultiplier")
if nameBase is None or range != currRange or nameBase != currBase:
Expand All @@ -156,6 +162,7 @@ def getSubMenu(self, context, selection, menu, i):

if sub is not None:
self.addSeperator(sub, "More Damage")

for item in items:
m.AppendItem(item)

Expand Down

0 comments on commit 631d97e

Please sign in to comment.