unitframes: add option to change powerbar width

This commit is contained in:
stokbaek
2017-11-17 17:31:59 +01:00
committed by Shagu
parent b9dbdb5bee
commit d472b07dd6
4 changed files with 55 additions and 8 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ pfUI:RegisterModule("player", function ()
this.energy = UnitMana("player")
local value = round((GetTime() - this.lastTick) * 100)
local pos = C.unitframes.player.width / 200 * value
local pos = (C.unitframes.player.pwidth ~= "-1" and C.unitframes.player.pwidth or C.unitframes.player.width) / 200 * value
if not C.unitframes.player.pheight then return end
this.spark:SetPoint("LEFT", pos-((C.unitframes.player.pheight+5)/2), 0)
end)