Skip to content

Commit

Permalink
Merge pull request #315 from lunedis/resistmultiplier
Browse files Browse the repository at this point in the history
Showing Resist Multiplier in Tooltip
  • Loading branch information
blitzmann committed Jul 7, 2015
2 parents 5e56107 + 8a22907 commit e042a21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/builtinStatsViews/resistancesViewFull.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ def refreshPanel(self, fit):
lbl = getattr(self, "labelResistance%sEhp" % tankType.capitalize())
if ehp is not None:
total += ehp[tankType]
rrFactor = fit.ehp[tankType] / fit.hp[tankType]
lbl.SetLabel(formatAmount(ehp[tankType], 3, 0, 9))
lbl.SetToolTip(wx.ToolTip("%s: %d" % (tankType.capitalize(), ehp[tankType])))
lbl.SetToolTip(wx.ToolTip("%s: %d\nResist Multiplier: x%.2f" % (tankType.capitalize(), ehp[tankType], rrFactor)))
else:
lbl.SetLabel("0")

Expand Down

0 comments on commit e042a21

Please sign in to comment.