Thread Tools Display Modes
03-20-11, 08:09 PM   #1
frohanss
A Cyclonian
AddOn Author - Click to view addons
Join Date: Mar 2011
Posts: 40
Storing values/defaults in 1 file

Hello all,

how can i setup 1 file to store defaults values in?
Like backgroundcolor, font & fontcolor and so on and bring it into another file?

Atm im making different UI mods that uses the same color values and such, and it's a bit pain to go throu them all when im testing out textures, colors++.

Is there a easy way?
  Reply With Quote
03-21-11, 05:44 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
only if you write an addon that tweaks the settings of the other addons and then store them in your addons personal wtf file as far as I can think of.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
03-21-11, 09:55 AM   #3
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 221
Create a named frame in the global namespace (literally every frame is in the global namespace) and put your values into an table, which is "attached" to that frame.
You should now be able to access these values/the table from other addons.

But keep in mind, that addons are loaded in a specific order, to be really sure that your values are available, you should add the addon with this global frame to the others .toc.
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Storing values/defaults in 1 file


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