Added tooltips for max warp dist and probe size
Updated eos to include the new property functions that drive those tooltips. Also fixed an error on showing the ship stats attribute when an icon couldn't be found.
This commit is contained in:
2
eos
2
eos
Submodule eos updated: 61bb6cf132...7cfbc8ff29
@@ -130,9 +130,10 @@ class TargetingMiscViewFull(StatsView):
|
||||
elif labelName is "labelSensorStr":
|
||||
label.SetToolTip(wx.ToolTip("Type: %s - %.1f" % (fit.scanType, value)))
|
||||
elif labelName is "labelFullSigRadius":
|
||||
label.SetToolTip(wx.ToolTip("Probe Size: %.3f" %
|
||||
( float(fit.ship.getModifiedItemAttr("signatureRadius"))
|
||||
/ fit.scanStrength) ))
|
||||
label.SetToolTip(wx.ToolTip("Probe Size: %.3f" % fit.probeSize))
|
||||
elif labelName is "labelFullWarpSpeed":
|
||||
label.SetToolTip(wx.ToolTip("Max Warp Distance: %.1f AU" %
|
||||
fit.maxWarpDistance))
|
||||
elif fit is not None:
|
||||
label.SetToolTip(wx.ToolTip("%.1f" % value))
|
||||
self._cachedValues[counter] = value
|
||||
|
||||
@@ -569,7 +569,8 @@ class ItemAffectedBy (wx.Panel):
|
||||
if afflictorType == Ship:
|
||||
itemIcon = self.imageList.Add(bitmapLoader.getBitmap("ship_small", "icons"))
|
||||
elif baseAfflictor.item.icon:
|
||||
itemIcon = self.imageList.Add(bitmapLoader.getBitmap(baseAfflictor.item.icon.iconFile, "pack"))
|
||||
bitmap = bitmapLoader.getBitmap(baseAfflictor.item.icon.iconFile, "pack")
|
||||
itemIcon = self.imageList.Add(bitmap) if bitmap else -1
|
||||
else:
|
||||
itemIcon = -1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user