Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-28-19, 12:00 AM   #1
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2011
Posts: 37
Global config in xml

I dont know how to description the question i wanna ask......for example, I do this in Config.lua:
Lua Code:
  1. local EKPlates, ns = ...
  2.  
  3.     ns[1] = {} -- C, config
  4.     ns[2] = {} -- G, globals (Optionnal)
  5.  
  6. local C, G = unpack(select(2, ...))
  7.  
  8.     -- config
  9.     G.norFont = STANDARD_TEXT_FONT

It's fine but now I need to make a xml template:

Code:
<FontString parentKey="value" font="Interface\AddOns\EKPlates\media\font.ttf" justifyH="CENTER" outline="NORMAL">
how to get media/font/texture file config in xml?

I know this is wrong

Code:
<FontString parentKey="value" font=G.norFont justifyH="CENTER" outline="NORMAL">
but I dont know the correct way......
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Global config in xml

Thread Tools
Display Modes

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