tooltip: add option to show health in percent

This commit is contained in:
shagu
2020-05-03 13:37:53 +02:00
parent d88c1b330a
commit 0f18715fab
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ pfUI:RegisterModule("tooltip", "vanilla:tbc", function ()
end
end
if estimated or hpmax > 100 then
if C.tooltip.alwaysperc == "0" and ( estimated or hpmax > 100 ) then
pfUI.tooltipStatusBar.HP:SetText(string.format("%s / %s", Abbreviate(rhp), Abbreviate(rhpmax)))
else
pfUI.tooltipStatusBar.HP:SetText(string.format("%s%%", hp))