Hello,
I am trying to create a top panel with tiled background graphics. So far I got.
Code:
local toppanel = CreateFrame("Frame",nil,UIParent)
toppanel:SetWidth(1920)
toppanel:SetHeight(16)
toppanel:SetPoint("TOP",0,0)
toppanel:SetBackdrop({
bgFile = "Interface\\ACHIEVEMENTFRAME\\UI-Achievement-Tsunami-Horizontal.png",
tile = true,
tileSize = 16
})
Given that the image I am using is 512 x 16 (w x h), is there a way that I could make it work?
I could have created several frame spanning across top edge and each frame would hold only one bgfile.
Also, am i correct to think that by defining edgeSize, you are indeed slicing a square ( tileSizex tileSize) from the bgfile and populate it to fit the entire backdrop frame?
Thanks for the help.
Edit: change edgeSize to tileSize