View Single Post
08-24-20, 04:03 PM   #1
Kekskrümel
An Aku'mai Servant
Join Date: Oct 2010
Posts: 39
Can someone help me out with the Backdrop Change?

Hi,

using an old Addon which doesn't get updated anymore, so the Bachdrop change broke it.

Can someone help me out, sadly I am a LUA Noob :/

Code:
local background       = "interface\\AddOns\\aPanels\\media\\halback"          
local border     = "interface\\AddOns\\aPanels\\media\\border"            
 
local panels,n   = {},0
local aPanels = CreateFrame("frame",nil,UIParent) 
 
CreatePanel = function(tag, x, y, width, height, texture, border, point, rpoint, anchor, parent) 
	panels[n] = CreateFrame("frame", tag, parent) 
	panels[n]:SetWidth(width)
	panels[n]:SetHeight(height)
	panels[n]:SetPoint(point, anchor, rpoint, x, y)
	panels[n]:SetBackdrop({bgFile = texture, edgeFile = border, edgeSize = 14,
                          insets = {left = 2, right = 2, top = 2, bottom = 2},
						  tile = true, tileSize = 256})
	panels[n]:SetFrameStrata("BACKGROUND") 
	panels[n]:Show()
	n = n + 1
end

aPanels.PLAYER_LOGIN = function(self)
	--FuBar
	CreatePanel("aPanels_Fubar01",0,457,1676,30,background,border,"CENTER","CENTER",UIParent,UIParent)
	CreatePanel("aPanels_Fubar02",0,457,1676,30,background,border,"CENTER","CENTER",UIParent,UIParent)
Thx & Greetings
  Reply With Quote