Commit d8a0cdfb authored by Azilroka's avatar Azilroka
Browse files


parent 4fbc9fb1
......@@ -241,6 +241,7 @@ function AS:CreateBackdrop(Frame, Template, Texture)
local Parent = Frame.IsObjectType and Frame:IsObjectType('Texture') and Frame:GetParent() or Frame
local Backdrop = CreateFrame('Frame', nil, Parent)
if not Backdrop.SetBackdrop then Mixin(Backdrop, BackdropTemplateMixin) end
AS:SetOutside(Backdrop, Frame)
AS:SetTemplate(Backdrop, Template, Texture)
......@@ -257,6 +258,7 @@ function AS:CreateShadow(Frame, NoRegister, Inverted)
if (not AS:CheckOption('Shadows')) or Frame.Shadow then return end
local Shadow = CreateFrame('Frame', nil, Frame)
if not Shadow.SetBackdrop then Mixin(Shadow, BackdropTemplateMixin) end
local FrameLevel = Frame:GetFrameLevel() > 1 and Frame:GetFrameLevel() or 1
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