xDamageFont

xDamageFont

by cyklon » Wed Mar 16, 2016 8:16 am

Working addon and here is the *.lua code
My question is, is there any way i can add code to this to be able to change the size aswell?

Code: Select all
xDamageFont = CreateFrame("Frame", "xDamageFont");

local damagefont_FONT_NUMBER = "Interface\\AddOns\\xDamageFont\\Fonts\\pixfont.ttf";

function xDamageFont:ApplySystemFonts()

DAMAGE_TEXT_FONT = damagefont_FONT_NUMBER;

end

xDamageFont:SetScript("OnEvent",
          function()
             if (event == "ADDON_LOADED") then
           xDamageFont:ApplySystemFonts()
             end
          end);
xDamageFont:RegisterEvent("ADDON_LOADED");

xDamageFont:ApplySystemFonts()
User avatar
cyklon
Senior Sergeant
Senior Sergeant
 

Re: xDamageFont

by AfterAfterlife » Wed Mar 16, 2016 3:49 pm

You can only change the size of the damage/effects you take by adding this line:
Code: Select all
COMBAT_TEXT_HEIGHT = 20;

The numbers above NPCs (i.e. the damage you deal to them) can't be modified, besides their font.

The only solution is to find a small/big font for your purpose.
AfterAfterlife
Grunt
Grunt
 

Re: xDamageFont

by cyklon » Wed Mar 16, 2016 5:25 pm

TY, willl try it asap!
User avatar
cyklon
Senior Sergeant
Senior Sergeant
 


Return to Addons & macros