1. #1

    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
    Deleted
    The actual error would help.

  3. #3
    Code:
    Message: Interface\AddOns\rActionButtonStyler\config.lua:3: attempt to index global 'button' (a nil value)

  4. #4
    Deleted
    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.

  5. #5
    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
    Deleted
    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.

  7. #7
    Deleted
    Post the entire file, please. Your SetFont call is fine, but a) 'button' is not local and b) the global 'button' is nil.

Posting Permissions

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