Proof of concept for gathering fits based on modules that are fit
This commit is contained in:
@@ -26,6 +26,7 @@ import gui.droneView
|
||||
from gui.builtinViewColumns.state import State
|
||||
from gui.contextMenu import ContextMenu
|
||||
from service.fit import Fit
|
||||
from service.market import Market
|
||||
from eos.saveddata.drone import Drone as es_Drone
|
||||
|
||||
|
||||
@@ -63,6 +64,15 @@ class CommandView(d.Display):
|
||||
|
||||
self.lastFitId = None
|
||||
|
||||
# Get list of items that define a command fit
|
||||
sMkt = Market.getInstance()
|
||||
grp = sMkt.getGroup(1770) # Command burst group
|
||||
self.commandTypeIDs = [item.ID for item in grp.items]
|
||||
|
||||
sFit = Fit.getInstance()
|
||||
commandFits = sFit.getFitsWithModules(self.commandTypeIDs)
|
||||
print (commandFits)
|
||||
|
||||
self.mainFrame.Bind(GE.FIT_CHANGED, self.fitChanged)
|
||||
self.Bind(wx.EVT_LEFT_DOWN, self.click)
|
||||
self.Bind(wx.EVT_RIGHT_DOWN, self.click)
|
||||
|
||||
Reference in New Issue
Block a user