View Single Post
Unread 10-18-10, 10:39 AM   #1
Toecheese
A Murloc Raider
 
Toecheese's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 8
Changing textures and backgrounds in .lua

Hi all
forgive me if this is a dumb question but I'm new to lua and and completely stuck!

I understand that nUI textures can be changed in skins using:
Code:
nUI_TopBars1:SetTexture("Interface\\AddOns\\nUI_TESTSKIN\\nUI_TESTSKIN_01" );
I understand that this changes the textures called in the .xml file, but how can I change the bgFile and edgeFile to change the background and edges of various frames.

Theres two things stopping me here, first is I simply don't know what the .lua would be!
Could it be something like:
Code:
nUI_UNITFRAME_SOLOPLAYER: bgFile ("Interface\\AddOns\\nUI_TESTSKIN\\nUI_TESTSKINbg.blp" ) ;
Secondly, unlike the top bar, bottom bar and dashboard which have their texture applied in the .xml, the untiframe borders and backgrounds are applied in each of the relevant .lua files which by my count is 82 different files!!
(every file in nUI\Layouts\Default\UnitPanels)

Is it possible to add lines in the .lua of a skin to also change all these borders and backgrounds together, or would each file need manually changing?

Thanks a lot
TC
__________________


What people don't get is that I am, ultimately, a rip-off artist at heart.
My brush has two colours, Copy and Paste, and my canvas is someone else's!


(Sorry Spiel2001 I couldn't resist )
Toecheese is offline