unitframes: adjust prediction frame layers

This commit is contained in:
shagu
2018-01-02 14:40:54 +01:00
parent 7856f28f0d
commit bb743ca43f
+3 -8
View File
@@ -102,12 +102,13 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
if pfUI_config.unitframes.custombg == "1" then
local cr, cg, cb, ca = pfUI.api.strsplit(",", pfUI_config.unitframes.custombgcolor)
cr, cg, cb, ca = tonumber(cr), tonumber(cg), tonumber(cb), tonumber(ca)
f.hp.bar.texture = f.hp.bar:CreateTexture(nil,"BACKGROUND")
f.hp.bar.texture = f.hp:CreateTexture(nil,"BACKGROUND")
f.hp.bar.texture:SetTexture(cr,cg,cb,ca)
f.hp.bar.texture:SetAllPoints(f.hp.bar)
end
f.incHeal = CreateFrame("StatusBar", nil, f.hp.bar)
f.incHeal = CreateFrame("StatusBar", nil, f.hp)
f.incHeal:SetFrameLevel(2)
f.incHeal:SetHeight(f.config.height)
f.incHeal:SetWidth(f.config.width)
f.incHeal:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
@@ -122,12 +123,6 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
end
end)
if f.config.invert_healthbar == "0" then
f.incHeal:SetFrameLevel(2)
else
f.incHeal:SetFrameLevel(3)
end
if f.config.verticalbar == "0" then
f.incHeal:SetPoint("TOPLEFT", f.hp.bar, "TOPLEFT", 0, 0)
else