Added scan resolution lock time calculation
Some common values are included, but the table looks like shite. I'm not sure how to format it properly when the text isn't monospaced. Someone else will need to take a look at it. For the time being, it works.
This commit is contained in:
2
eos
2
eos
Submodule eos updated: 8bbf8c874a...6f953b3103
@@ -114,13 +114,22 @@ class TargetingMiscViewFull(StatsView):
|
||||
value = value if value is not None else 0
|
||||
if self._cachedValues[counter] != value:
|
||||
label.SetLabel("%s %s" %(formatAmount(value, prec, lowest, highest), unit))
|
||||
if labelName is not "labelSensorStr":
|
||||
# Tooltip stuff
|
||||
RADII = [("Pod",25), ("Interceptor",33), ("Frigate",38),
|
||||
("Destroyer", 83), ("Cruiser", 130),
|
||||
("Battlecruiser", 265), ("Battleship",420)]
|
||||
if labelName is "labelScanRes":
|
||||
lockTime = "Lock Times\n"
|
||||
for size, radius in RADII:
|
||||
lockTime += "%s [%d]: %.1fs\n" % (size, radius,
|
||||
fit.calculateLockTime(radius))
|
||||
label.SetToolTip(wx.ToolTip(lockTime))
|
||||
elif labelName is "labelSensorStr":
|
||||
label.SetToolTip(wx.ToolTip("Type: %s - %.1f" % (fit.scanType, value)))
|
||||
elif fit is not None:
|
||||
label.SetToolTip(wx.ToolTip("%.1f" % value))
|
||||
else:
|
||||
if fit is not None:
|
||||
label.SetToolTip(wx.ToolTip("Type: %s - %.1f" % (fit.scanType, value)))
|
||||
self._cachedValues[counter] = value
|
||||
counter += 1
|
||||
counter += 1
|
||||
|
||||
self.panel.Layout()
|
||||
self.headerPanel.Layout()
|
||||
|
||||
Reference in New Issue
Block a user