mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 12:30:50 +00:00
Fix addon button panel startup visibility (#61)
* fix(addonbuttons): rescan before startup visibility check * Fix missing percentage symbols in unitframe labels
This commit is contained in:
+2
-2
@@ -2647,7 +2647,7 @@ function pfUI.uf:GetStatusValue(unit, pos)
|
||||
elseif config == "healthmax" then
|
||||
return unit:GetColor("health") .. pfUI.api.Abbreviate(rhpmax)
|
||||
elseif config == "healthperc" then
|
||||
return unit:GetColor("health") .. ceil(hp / hpmax * 100)
|
||||
return unit:GetColor("health") .. ceil(hp / hpmax * 100) .. "%"
|
||||
elseif config == "healthmiss" then
|
||||
local health = ceil(rhp - rhpmax)
|
||||
if UnitIsDead(unitstr) then
|
||||
@@ -2700,7 +2700,7 @@ function pfUI.uf:GetStatusValue(unit, pos)
|
||||
return unit:GetColor("power") .. pfUI.api.Abbreviate(mpmax)
|
||||
elseif config == "powerperc" then
|
||||
local perc = UnitPowerMax(unitstr) > 0 and ceil(mp / mpmax * 100) or 0
|
||||
return unit:GetColor("power") .. perc
|
||||
return unit:GetColor("power") .. perc .. "%"
|
||||
elseif config == "powermiss" then
|
||||
local power = ceil(mp - mpmax)
|
||||
if power == 0 then
|
||||
|
||||
Reference in New Issue
Block a user