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:
Corollax
2010-11-29 02:44:07 -06:00
parent 087aeab91f
commit c93b4c9f4e
3 changed files with 7 additions and 5 deletions

2
eos

Submodule eos updated: 61bb6cf132...7cfbc8ff29

View File

@@ -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

View File

@@ -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