1. #1
    Epic! solvexx's Avatar
    Join Date
    Dec 2010
    Location
    Sydney, Australia.
    Posts
    1,680

    Issue changing button count font.

    I'm having an issue with the number on the button showing how many charges of a skill you have IE: Hand of Freedom, Charge and ect.
    I can't figure out how to change the font.

    I've been trying to use

    button.count:SetFont("Fonts\\MORPHEUS", 12, "OUTLINE")
    But it doesn't work, just a LUA error.


    Any ideas?

  2. #2
    High Overlord Lombra's Avatar
    Join Date
    Apr 2008
    Location
    Sweden
    Posts
    180
    The actual error would help.
    You must come with me, young ones, for I am the grim reaper.

    Defias Brotherhood-EU

  3. #3
    Epic! solvexx's Avatar
    Join Date
    Dec 2010
    Location
    Sydney, Australia.
    Posts
    1,680
    Code:
    Message: Interface\AddOns\rActionButtonStyler\config.lua:3: attempt to index global 'button' (a nil value)

  4. #4
    High Overlord Lombra's Avatar
    Join Date
    Apr 2008
    Location
    Sweden
    Posts
    180
    That means the error lies elsewhere. Make sure the 'button' variable is referring to what it should, or post more code if you're not sure.
    You must come with me, young ones, for I am the grim reaper.

    Defias Brotherhood-EU

  5. #5
    Epic! solvexx's Avatar
    Join Date
    Dec 2010
    Location
    Sydney, Australia.
    Posts
    1,680
    Quote Originally Posted by Lombra View Post
    That means the error lies elsewhere. Make sure the 'button' variable is referring to what it should, or post more code if you're not sure.
    There is no problem with anything except for the original bit I posted.
    I am looking for the proper way to change the button charge text.
    There is no issue with anything at all other than changing the font and the error lies in the one line I posted.

  6. #6
    High Overlord Lombra's Avatar
    Join Date
    Apr 2008
    Location
    Sweden
    Posts
    180
    I don't know what to tell you; the syntax is fine, and if that line is line 3 in the file, then the error is that the button variable is invalid.
    You must come with me, young ones, for I am the grim reaper.

    Defias Brotherhood-EU

  7. #7
    Post the entire file, please. Your SetFont call is fine, but a) 'button' is not local and b) the global 'button' is nil.
    UI & AddOns expert | Interface & Macros moderator - My work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •