View Single Post
11-24-16, 05:03 AM   #7
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Originally Posted by Malus416 View Post
Neither of those do what I'm after. First one changes all the font in the game at once, second one I can't even find a way to activate it.

Hi,

You are right about the first.
It changes fonts globally (changing also the damage fonts as well).

On the second you are not correct.
It changes the damage fonts as you can check the code:

Lua Code:
  1. local size = 16
  2.  
  3. CombatTextFont:SetFont(STANDARD_TEXT_FONT, size, "OUTLINE")
  4. CombatTextFont:SetShadowOffset(1,-1)
  5. CombatTextFont:SetShadowColor(0,0,0,0.6)
  6.  
  7. CombatTextFontOutline:SetFont(STANDARD_TEXT_FONT, size, "OUTLINE")
  8. CombatTextFontOutline:SetShadowOffset(1,-1)
  9. CombatTextFontOutline:SetShadowColor(0,0,0,0.6)
  10.  
  11. COMBAT_TEXT_HEIGHT = size
  12. COMBAT_TEXT_CRIT_MAXHEIGHT = size*1
  13. COMBAT_TEXT_CRIT_MINHEIGHT = size*1
  14. COMBAT_TEXT_SCROLLSPEED = 2.5
  15.  
  16. local function UpdateDisplayMessages()
  17.   if COMBAT_TEXT_FLOAT_MODE == "1" then
  18.     COMBAT_TEXT_LOCATIONS.startY = 325
  19.     COMBAT_TEXT_LOCATIONS.endY = 525
  20.   end
  21. end
  22.  
  23. hooksecurefunc("CombatText_UpdateDisplayedMessages", UpdateDisplayMessages)

You can choose the font using:
CombatTextFont:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME")

You don't need to activate .. just install.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote