Changes required to implement the remote reps pane

This commit is contained in:
Ebag333
2017-02-26 12:42:39 -08:00
parent dbffdedc92
commit 370b58d500
4 changed files with 11 additions and 3 deletions

View File

@@ -97,6 +97,10 @@ class PFStatViewPref(PreferenceView):
rbSizerRow3.Add(self.rbPrice, 1, wx.TOP | wx.RIGHT, 5)
self.rbPrice.Bind(wx.EVT_RADIOBOX, self.OnPriceChange)
self.rbOutgoing = wx.RadioBox(panel, -1, "Remote Reps", wx.DefaultPosition, wx.DefaultSize, ['None', 'Minimal', 'Full'], 1, wx.RA_SPECIFY_COLS)
self.rbOutgoing.SetSelection(self.settings.get('outgoing'))
rbSizerRow3.Add(self.rbOutgoing, 1, wx.TOP | wx.RIGHT, 5)
self.rbOutgoing.Bind(wx.EVT_RADIOBOX, self.OnOutgoingChange)
# We don't have views for these.....yet
'''
self.rbMining = wx.RadioBox(panel, -1, "Mining", wx.DefaultPosition, wx.DefaultSize,
@@ -138,6 +142,9 @@ class PFStatViewPref(PreferenceView):
def OnPriceChange(self, event):
self.settings.set('price', event.GetInt())
def OnOutgoingChange(self, event):
self.settings.set('outgoing', event.GetInt())
def OnMiningYieldChange(self, event):
self.settings.set('miningyield', event.GetInt())

View File

@@ -25,7 +25,7 @@ from gui.utils.numberFormatter import formatAmount
class OutgoingViewFull(StatsView):
name = "outgoingViewFull"
name = "outgoingViewMinimal"
def __init__(self, parent):
StatsView.__init__(self)

View File

@@ -40,7 +40,7 @@ class StatsPane(wx.Panel):
"resistances",
"recharge",
"firepower",
"outgoingView",
"outgoing",
"capacitor",
"targetingMisc",
"price",

View File

@@ -370,7 +370,8 @@ class StatViewSettings(object):
"targetingMisc": 1,
"price" : 2,
"miningyield" : 2,
"drones" : 2
"drones" : 2,
"outgoing" : 2,
}
# We don't have these....yet