mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 09:56:03 +00:00
tooltip: add option to show health in percent
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user