Connecting Addon Files? menu

User Tag List

Results 1 to 1 of 1
  1. #1
    MrTravisL's Avatar Private
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Connecting Addon Files?

    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)"

    Connecting Addon Files?

Similar Threads

  1. Replies: 2
    Last Post: 10-03-2011, 10:37 AM
  2. Reading a text file from a WoW addon
    By kixer in forum Programming
    Replies: 3
    Last Post: 10-25-2010, 08:36 AM
  3. Original Blizzard AddOn Files
    By Ayumu in forum WoW UI, Macros and Talent Specs
    Replies: 1
    Last Post: 02-13-2010, 09:54 AM
  4. Sync WoW Addons & Config files between 2 computers.
    By Dastin in forum World of Warcraft Guides
    Replies: 6
    Last Post: 02-03-2009, 07:12 PM
  5. The Wow-dupe File!!
    By Cyboi in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 06-14-2006, 10:14 PM
All times are GMT -5. The time now is 05:28 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search