Add align time

This commit is contained in:
cncfanatics
2010-09-03 23:33:36 +02:00
parent 41909ae9de
commit cdb81fa93d
3 changed files with 4 additions and 2 deletions

View File

@@ -127,6 +127,7 @@ class FittingView(wx.ListCtrl):
wx.PostEvent(self.mainFrame, FitChanged(fitID=self.activeFitID))
def fitChanged(self, event):
self.Hide()
cFit = controller.Fit.getInstance()
fit = cFit.getFit(event.fitID)
selection = []
@@ -159,4 +160,5 @@ class FittingView(wx.ListCtrl):
for sel in selection:
self.Select(sel)
self.Show()
event.Skip()

View File

@@ -66,7 +66,7 @@ class StatsPane(wx.Panel):
("label%sCapacitorRecharge", lambda: fit.capRecharge, 1),
("label%sCapacitorDischarge", lambda: fit.capUsed, 1),
("label%sSpeed", lambda: fit.ship.getModifiedItemAttr("maxVelocity"), 1),
("label%sAlignTime", lambda: 0, 1))
("label%sAlignTime", lambda: fit.alignTime, 1))
stats = (("labelFullUsedDroneBay", lambda: fit.droneBayUsed, 0),
("labelFullUsedDroneBandwidth", lambda: fit.droneBandwidthUsed, 0),