View Single Post
11-25-16, 12:53 AM   #8
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Originally Posted by gmarco View Post
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.

I answer here to your pm so it could be corrected if I did some mistakes

1) Install the rCombatText addon.
2) Copy the desired font in the rCombatText folder ( es. Candara.ttf)
3) Edit the file rCombatText.lua in this way editing the size and adding the name of the font:

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

Load the game and play.

Please let us know if it works.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote