Hey guys,
i am currently adding some textures to my interface. The textures should act as background for my actionbars which are managed by elvui. The code simply looks like this:
Code:
local lbottom = CreateFrame("Frame", nil, UIParent)
lbottom:SetSize(400, 230)
lbottom:SetPoint("BOTTOM")
local texture = lbottom:CreateTexture()
texture:SetTexture([[Interface/AddOns/kArt/textures/rightshadow.tga]])
texture:SetPoint("BOTTOM",200,0)
texture:SetSize(400, 230)
Now my problem is that the textures are covering my action bars. With "texture:SetDrawLayer("BACKGROUND", 1)" i can control which texture will display over the others, but how can i set the frame level for the action bars?
And another matter: I would like to display the textures only when my action bars are displayed (currently in combat and when i press alt). Is there a simple way to do this?
Thanks in advance!