mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 14:10:01 +00:00
nameplates: add option to show health in percent
This commit is contained in:
@@ -401,7 +401,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
rhp, rhpmax, estimated = pfUI.libhealth:GetUnitHealthByName(name,level,tonumber(hp),tonumber(hpmax))
|
||||
end
|
||||
|
||||
if estimated or hpmax > 100 then
|
||||
if C.nameplates.alwaysperc == "0" and ( estimated or hpmax > 100 ) then
|
||||
plate.health.text:SetText(string.format("%s / %s", Abbreviate(rhp), Abbreviate(rhpmax)))
|
||||
else
|
||||
plate.health.text:SetText(string.format("%s%%", hp))
|
||||
|
||||
Reference in New Issue
Block a user