1. #1

    "NiceDamage" addon - changing font size

    Hello.

    I downloaded an addon today called "NiceDamage", which changes the normal fonts when you're doing damage to another font.
    The addon works great, but I was just wondering how, in LUA I can make the font-size smaller?

    Here is the LUA:
    Code:
    NiceDamage = CreateFrame("Frame", "NiceDamage");
    
    local damagefont_FONT_NUMBER = "Interface\\AddOns\\NiceDamage\\font.ttf";
    
    function NiceDamage:ApplySystemFonts()
    
    DAMAGE_TEXT_FONT = damagefont_FONT_NUMBER;
    
    end
    
    NiceDamage:SetScript("OnEvent",
                function() 
                   if (event == "ADDON_LOADED") then
                  NiceDamage:ApplySystemFonts()
                   end
                end);
    NiceDamage:RegisterEvent("ADDON_LOADED");
    
    NiceDamage:ApplySystemFonts()
    I'm a kittycat

  2. #2
    Scarab Lord
    15+ Year Old Account
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    4,040
    Not that I'm aware of - the fontsize of the Blizzard FCT is set by WoW, all NiceDamage does is tell it to use a different fontface.

  3. #3
    Not 100% sure, but you could try this for the ApplySystemFonts function:
    Code:
    function NiceDamage:ApplySystemFonts()
         DAMAGE_TEXT_FONT = damagefont_FONT_NUMBER;
         local font, size, flags = CombatTextFont:GetFont();
         CombatTextFont:SetFont(DAMAGE_TEXT_FONT, XX, flags);
    end
    Just replace XX with the size that you want.

  4. #4
    Quote Originally Posted by LaughingMan View Post
    Not 100% sure, but you could try this for the ApplySystemFonts function:
    Code:
    function NiceDamage:ApplySystemFonts()
         DAMAGE_TEXT_FONT = damagefont_FONT_NUMBER;
         local font, size, flags = CombatTextFont:GetFont();
         CombatTextFont:SetFont(DAMAGE_TEXT_FONT, XX, flags);
    end
    Just replace XX with the size that you want.
    Tried it, didnt work.
    I'm a kittycat

Posting Permissions

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