From 45f837e4461295163245e47396570b5dc8f90e4b Mon Sep 17 00:00:00 2001 From: Corollax Date: Thu, 28 Oct 2010 13:51:03 -0500 Subject: [PATCH] Removed Uniform and Selected Ammo in Damage Editor Also increased the width of the Damage Editor window so text was not obscured. --- gui/patternEditor.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gui/patternEditor.py b/gui/patternEditor.py index 6ef0ab6ed..1d9996690 100644 --- a/gui/patternEditor.py +++ b/gui/patternEditor.py @@ -28,7 +28,7 @@ import service class DmgPatternEditorDlg (wx.Dialog): def __init__(self, parent): - wx.Dialog.__init__ (self, parent, id = wx.ID_ANY, title = u"Damage Pattern Editor", size = wx.Size( 350,240 )) + wx.Dialog.__init__ (self, parent, id = wx.ID_ANY, title = u"Damage Pattern Editor", size = wx.Size( 400,240 )) self.SetSizeHintsSz(wx.DefaultSize, wx.DefaultSize) @@ -39,6 +39,12 @@ class DmgPatternEditorDlg (wx.Dialog): cDP = service.DamagePattern.getInstance() self.choices = cDP.getDamagePatternList() + # Remove "Uniform" and "Selected Ammo" Damage Patterns + names = map(lambda p: p.name, self.choices) + del self.choices[names.index("Uniform")] + names.remove("Uniform") + del self.choices[names.index("Selected Ammo")] + # Sort the remaining list and continue on self.choices.sort(key=lambda p: p.name) self.ccDmgPattern = wx.Choice(self, choices=map(lambda p: p.name, self.choices)) self.ccDmgPattern.Bind(wx.EVT_CHOICE, self.patternChanged)