From a97847e644d8a9a46ffa30d7d2511dba05bf6c90 Mon Sep 17 00:00:00 2001 From: Kalu Date: Tue, 7 Jul 2015 19:22:27 +0200 Subject: [PATCH 1/2] show rr factor in tooltip --- gui/builtinStatsViews/resistancesViewFull.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/builtinStatsViews/resistancesViewFull.py b/gui/builtinStatsViews/resistancesViewFull.py index 9a1df251f3..61e7e70260 100644 --- a/gui/builtinStatsViews/resistancesViewFull.py +++ b/gui/builtinStatsViews/resistancesViewFull.py @@ -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, x%.2f" % (tankType.capitalize(), ehp[tankType], rrFactor))) else: lbl.SetLabel("0") From 8a229079407faebeea647b5700555ffdf81e0add Mon Sep 17 00:00:00 2001 From: Kalu Date: Tue, 7 Jul 2015 20:35:08 +0200 Subject: [PATCH 2/2] newline in resist multiplier tooltip and explanation --- gui/builtinStatsViews/resistancesViewFull.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/builtinStatsViews/resistancesViewFull.py b/gui/builtinStatsViews/resistancesViewFull.py index 61e7e70260..a354243355 100644 --- a/gui/builtinStatsViews/resistancesViewFull.py +++ b/gui/builtinStatsViews/resistancesViewFull.py @@ -199,7 +199,7 @@ def refreshPanel(self, fit): total += ehp[tankType] rrFactor = fit.ehp[tankType] / fit.hp[tankType] lbl.SetLabel(formatAmount(ehp[tankType], 3, 0, 9)) - lbl.SetToolTip(wx.ToolTip("%s: %d, x%.2f" % (tankType.capitalize(), ehp[tankType], rrFactor))) + lbl.SetToolTip(wx.ToolTip("%s: %d\nResist Multiplier: x%.2f" % (tankType.capitalize(), ehp[tankType], rrFactor))) else: lbl.SetLabel("0")