|
@@ -836,7 +836,7 @@ class RuneOptimizerFrame(wx.Frame):
|
|
|
|
|
|
|
|
# Show unit list
|
|
# Show unit list
|
|
|
wx.StaticText(parent=pnl, id=-1, label="Name Prio. Sto.", pos=(10, 10), size=(190, 20))
|
|
wx.StaticText(parent=pnl, id=-1, label="Name Prio. Sto.", pos=(10, 10), size=(190, 20))
|
|
|
- self.unitList = wx.ListCtrl(parent=pnl, id=-1, pos=(10, 30), size=(190, 650), style=wx.LC_REPORT|wx.LC_NO_HEADER)
|
|
|
|
|
|
|
+ self.unitList = wx.ListCtrl(parent=pnl, id=-1, pos=(10, 30), size=(190, 550), style=wx.LC_REPORT|wx.LC_NO_HEADER)
|
|
|
self.unitList.InsertColumn(0, "Name", width=120)
|
|
self.unitList.InsertColumn(0, "Name", width=120)
|
|
|
self.unitList.InsertColumn(1, "Prio.", width=40)
|
|
self.unitList.InsertColumn(1, "Prio.", width=40)
|
|
|
self.unitList.InsertColumn(2, "Sto.", width=30)
|
|
self.unitList.InsertColumn(2, "Sto.", width=30)
|
|
@@ -866,6 +866,18 @@ class RuneOptimizerFrame(wx.Frame):
|
|
|
|
|
|
|
|
self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.unitSelected, self.unitList)
|
|
self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.unitSelected, self.unitList)
|
|
|
|
|
|
|
|
|
|
+ # List filters
|
|
|
|
|
+ filterBox = wx.StaticBox(pnl, label="Filters:",id=-1, pos=(100, 600), size=(190, 150))
|
|
|
|
|
+ wx.StaticText(parent=filterBox, label="Monster name", pos=(5, 5), size=(190, 20))
|
|
|
|
|
+ self.filterName = wx.TextCtrl(parent=filterBox, id=-1, value="", pos=(5, 25), size=(190, 20), style=wx.TE_PROCESS_ENTER|wx.TE_PROCESS_TAB, name="tx0"),
|
|
|
|
|
+ self.filterNoRunes = wx.CheckBox(parent=filterBox, id=-1, label="Monsters without runes", pos=(5, 55), size=(190, 20))
|
|
|
|
|
+ self.filterNoRunes.SetValue(true)
|
|
|
|
|
+ self.filterNoTeams = wx.CheckBox(parent=filterBox, id=-1, label="Monsters not in teams", pos=(5, 75), size=(190, 20))
|
|
|
|
|
+ self.filterNoTeams.SetValue(true)
|
|
|
|
|
+ # TODO: Binds for filters
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
self.unitContent = wx.BoxSizer(wx.VERTICAL)
|
|
self.unitContent = wx.BoxSizer(wx.VERTICAL)
|
|
|
|
|
|
|
|
# Unit name
|
|
# Unit name
|