Commit 0c1f29e2 authored by Blazeflack's avatar Blazeflack

Fixed error due to new changes in ElvUI

This fixes #12
parent 7156b7b2
......@@ -76,12 +76,7 @@ function VAT:CreateBar(button)
BarHolder:SetTemplate('Default', nil, true)
if E.db.VAT.useBackdropTexture then
local texture = LSM:Fetch("statusbar", E.db['VAT'].backdropTexture)
if BarHolder.backdropTexture then
--deprecated
BarHolder.backdropTexture:SetTexture(texture)
else
BarHolder:GetBackdrop().bgFile = texture
end
BarHolder.pixelBorders.CENTER:SetTexture(texture)
end
button.Holder = BarHolder
......@@ -376,11 +371,7 @@ function VAT:UpdateHeader(header)
child.Holder:SetTemplate('Default', nil, true)
if E.db.VAT.useBackdropTexture then
local texture = LSM:Fetch("statusbar", E.db['VAT'].backdropTexture)
if child.Holder.backdropTexture then --deprecated
child.Holder.backdropTexture:SetTexture(texture)
else
child.Holder:GetBackdrop().bgFile = texture
end
child.Holder.pixelBorders.CENTER:SetTexture(texture)
end
child.Bar:SetStatusBarTexture(E.db.VAT.useStatusbarTexture and LSM:Fetch("statusbar", E.db['VAT'].statusbarTexture) or E['media'].blankTex)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment