Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-25-12, 05:40 AM   #1
skarie
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Jun 2011
Posts: 37
Tiled Background!

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

Last edited by skarie : 01-25-12 at 04:57 PM. Reason: typo
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Tiled Background!


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off