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:
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"> I know this is wrong Code:
<FontString parentKey="value" font=G.norFont justifyH="CENTER" outline="NORMAL"> |
You can only use information from lua in xml by using globals. xml doesn't understand ... like lua does.
|
|
Quote:
reading links in wiki now Quote:
|
I would suggest setting the FontString in XML to inherit from an ingame font initially, then change it from Lua when your config loads using Fontstring:SetFont().
Alternatively, you can try your luck with CreateFont() and inheriting it in your XML. Lua Code:
XML Code:
Note: Last time I tried creating fonts in Lua, there was a bug where the font couldn't be used even after using Font:SetFont() unless I initially inherited from an ingame font first. |
Quote:
|
All times are GMT -6. The time now is 11:39 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI