Added tooltips for EHP statictext controls

This commit is contained in:
HomeWorld
2010-09-03 14:00:25 +03:00
parent eb72b18a07
commit 98d638adba

View File

@@ -169,10 +169,12 @@ class StatsPane(wx.Panel):
if ehp is not None:
total += ehp[tankType]
lbl.SetLabel(shorten(ehp[tankType], 2))
lbl.SetToolTip(wx.ToolTip("%s: %d" % (tankType.capitalize(), ehp[tankType])))
else:
lbl.SetLabel("0")
self.labelEhp.SetLabel(shorten(total, 2))
self.labelEhp.SetToolTip(wx.ToolTip("Effective: %d" % total))
damagePattern = fit.damagePattern if fit is not None else None
for damageType in ("em", "thermal", "kinetic", "explosive"):