unitframes: add offset options to power bars

This commit is contained in:
dbulatovicx32
2024-07-26 19:31:25 +02:00
committed by GitHub
parent 9a40ca7b9b
commit ada9ee9242
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -481,7 +481,7 @@ function pfUI.uf:UpdateConfig()
end
f.power:ClearAllPoints()
f.power:SetPoint(f.config.panchor, f.hp, relative_point, 0, -2*default_border - f.config.pspace * GetPerfectPixel())
f.power:SetPoint(f.config.panchor, f.hp, relative_point, f.config.poffx, -2*default_border - f.config.pspace + f.config.poffy * GetPerfectPixel())
f.power:SetWidth((f.config.pwidth ~= "-1" and f.config.pwidth or f.config.width))
f.power:SetHeight(f.config.pheight)
if tonumber(f.config.pheight) < 0 then f.power:Hide() end