View Single Post
10-18-10, 10:48 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
What you would want to do is catch the "ADDON_LOADED" event and test of "nUI" then you would assign new values to the background elements in the respective layout files from within your addon. This would allow you to modify which textures are used at runtime without having to edit the nUI sources.

Have a look at the nUI_AuraButtons mod for a peek at how the layout files can be changed at runtime.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/