I want to get stuff from another file in my addon, right now I have 2 files that have some of the same codes in it. What I want to do is make 1 file and put the stuff that both of the file uses in that file. How would I do that?
I would also like to change the font color in a lua script, not xml. Right now the code is:
LUA
Code:
CustomQuest_Header:SetTextColor(r=000/255, g=255/255, b=000/255)
QuestDifficultyColors["header"].font = CustomQuest_Header;
XML
Code:
<Font name="CustomQuest_Header"/>
I tried the color code above and I get this:
Code:
Message: ...nterface\AddOns\DetailDisplayer\InterfaceEditing.lua:17: attempt to index global 'CustomQuest_Header' (a nil value)
Time: 04/27/11 02:03:27
Count: 1
Stack: ...nterface\AddOns\DetailDisplayer\InterfaceEditing.lua:17: in main chunk
Locals: (*temporary) = nil
(*temporary) = nil
(*temporary) = <userdata>
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index global 'CustomQuest_Header' (a nil value)"