1. #1

    Help changing font colors

    ive been working on a complete reskin of the default wow ui and have run into a little problem. As i was finishing the spell book i noticed some of the text is an ugly brown color. not only is it ugly but its hard to read against my frame.


    Does anyone know of a way to change this font color or any other fonts in the interface without the aid of and addon but perhaps thru a script or lua code?
    Thx in advance for any help in this matter!

  2. #2
    Deleted
    Is the SubSpellFont globally accessible? To check, try /dump SubSpellFont. What does it return?

    If it is, do a SetTextColor on it. All the rank labels inherit it.

  3. #3
    /dump SubSpellFont returned with

    <Font:SubSpellFont
    GetAlpha() => 0.99999779462814,
    GetFont() => "Fonts\\FRIZQT__.TTF", 10, "",
    GetFontObject() => <Font:SpellFont_Small>,
    GetIndentedWordWrap() => nil,
    GetJustifyH() => "CENTER",
    GetJustifyV() => "MIDDLE",
    GetName() => "SubSpellFont",
    GetObjectType() => "Font",
    GetShadowColor() => 0, 0, 0, 0,
    GetShadowOffset() => 0, 0,
    GetSpacing() => 0,
    GetTextColor() => 0.34901884198189, 0.1999995559454, 0, 0.99999779462814
    >

    obviously the text color is listed in the last line but not really sure what to do with it after that

  4. #4
    Deleted
    What does the following do:
    Code:
    /run SubSpellFont:SetTextColor(1,1,1)

  5. #5
    Quote Originally Posted by Treeston View Post
    What does the following do:
    Code:
    /run SubSpellFont:SetTextColor(1,1,1)
    that worked for the subspell font now just need to figure out the command for the page number font

  6. #6
    Deleted
    Code:
    /run SpellBookPageText:SetColor(1,1,1)

  7. #7
    both these work great but have to be entered on every login i guess my only option is to learn how to write them into and addon so i guess im gonna go learn more bout lua. thx for your help!

  8. #8
    Deleted
    /run commands are Lua! You can just remove the /run and use this.

  9. #9
    thx so much for the help, just one more thing is there a way to inspect all the frame elements so i can run all the dump commands and set new colors for other frame?

  10. #10
    Deleted
    Personally I checked the FrameXML, Ctrl+F-ing for the "<FontString" tag. You could also /fstack, but I'm not sure if that displays fontstrings.

  11. #11
    Check out AfterFonts, I've gotten most of my fonts fixed with that.

Posting Permissions

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