WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Code to change font size for damage text (https://www.wowinterface.com/forums/showthread.php?t=11656)

WaldoJeffers 08-09-07 01:16 AM

Code to change font size for damage text
 
Hey, this is the code for a mod called Good Damage Font which "changes the normal WoW damage font to the cool kind you see in a lot of WoW pvp videos" Can i please get some help with manipulating the size of this font please? The font in game is a little to small

Code:

gdFont = CreateFrame("Frame", "gdFont");

local GD_FONT_NUMBER = "Interface\\AddOns\\gdFont\\Fonts\\Skurri.ttf";

function gdFont:ApplySystemFonts()

DAMAGE_TEXT_FONT = GD_FONT_NUMBER;


end

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

gdFont:ApplySystemFonts()

Thanks for anything I can get :p

TheRealArkayn 08-23-10 10:17 PM

I really hate to bump a 3 year-old "thread," but I'm currently trying to achieve the same thing with xDamageFont (whose code is almost exactly the same as this add-on's code). My damage font is just a hair too small for my preference, and I would really like to bump it up a couple points. Does anyone know if it's possible?

Miiru 08-28-10 07:16 AM

As fasr as i know it is not possible to change the fontsize of the actual damage and healing numbers outputted by the blizzard combat text. At least that was the answer i got everytime i asked that question which is a shame.

LaDyNaaMAH 08-28-10 07:47 AM

I believe that players cannot manipulate by blizzard's combat text interface by any means, such as adding custom messages etc. (if i am wrong let me know, i could really use that cause ErrorFrame isn't perfect...)

Petrah 08-28-10 07:54 AM

http://www.wowinterface.com/download...amageFont.html

LaDyNaaMAH 08-28-10 07:59 AM

That's a way, for sure and i know that... but you cannot change font size... not to mention my problem with adding own messages :P

Petrah 08-28-10 08:06 AM

I thought you could do this with Miks or SCT.. unless I'm not understanding, which is highly likely lol.

sacrife 08-28-10 08:11 AM

Well you can with Mik's. And if you position above the player head and disables the default blizzard combat damage you might simulate what the OP wants.

LaDyNaaMAH 08-28-10 08:13 AM

Well the whole problem is that i don't want to REPLACE blizzard's combat text, just adding few own messages, the thing is... there is option to toggle buffs gain/fade... that sucks cause it monitors auras that i couldn't care less such as priest prayers that lasts for one hour and don't need to be reapplied too often... besides... i am warrior, that's their business to maintain forts, not mine... i just wanna messages "hey! watch your goddamn shout!" above my character...

Seerah 08-28-10 09:38 AM

http://www.wowace.com/addons/libsink-2-0/

TheRealArkayn 08-28-10 09:57 AM

I've determined it is impossible to change the font size of the default damage output without manually modifying the .ttf file and using an add-on like xDamageFont. I'm actually not even sure modifying the .ttf would prove successful. Font size may be controlled by the game's rendering engine.

LaDyNaaMAH 08-28-10 10:02 AM

I believe that using another font might make the text look different but it can't change it's size unless you create a font just for this purpose and even if you would try it might be either technically impossible to do or the results might be undesirable...

Nobgul 08-28-10 10:11 AM

Thats because you do not need to change the "size of the text". You need to change the "Scale" of frame where the text is being displayed. Which may be impossible with the standard blizzard SCT.

TheRealArkayn 08-28-10 10:14 AM

This isn't about the standard Blizzard SCT. SCT has nothing to do with this topic.

Nobgul 08-28-10 10:22 AM

I may be tired by xDamageFont changes the damage font of the scrolling combat text doesn't it? You know you hit something it shows you yuor damage which is SCT.

Or am I just being stupid here?
Quote:

Originally Posted by WaldoJeffers (Post 64470)
Hey, this is the code for a mod called Good Damage Font which "changes the normal WoW damage font to the cool kind you see in a lot of WoW pvp videos" Can i please get some help with manipulating the size of this font please? The font in game is a little to small

Code:

gdFont = CreateFrame("Frame", "gdFont");

local GD_FONT_NUMBER = "Interface\\AddOns\\gdFont\\Fonts\\Skurri.ttf";

function gdFont:ApplySystemFonts()

DAMAGE_TEXT_FONT = GD_FONT_NUMBER;


end

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

gdFont:ApplySystemFonts()

Thanks for anything I can get :p


Seerah 08-28-10 04:44 PM

You're not being stupid. This thread *is* about the Blizzard FCT (aka. SCT). ;)

TheRealArkayn 08-28-10 04:51 PM

I consider the Blizzard SCT to be the messages like *Stunned!* that scroll from directly upon your character; in contrast, the damage font is the numerical text generated in the 3D world. It pops out of an enemy's head, drops, and lands at its feet. I'm not sure if the SCT is at all configurable, and frankly I don't care. It's the damage font that I and the OP want to alter the size of.

Nobgul 08-28-10 05:07 PM

Thank you Seerah,
When I Posted sleep was needed.

Lol ok, no worries. And yes you can change the "Scale" aka "size" I was able to a few minutes ago with some slick LUA.

Quote:

Originally Posted by TheRealArkayn (Post 204152)
I consider the Blizzard SCT to be the messages like *Stunned!* that scroll from directly upon your character; in contrast, the damage font is the numerical text generated in the 3D world. It pops out of an enemy's head, drops, and lands at its feet. I'm not sure if the SCT is at all configurable, and frankly I don't care. It's the damage font that I and the OP want to alter the size of.


TheRealArkayn 08-28-10 08:38 PM

Why ya holdin' out, nobgul? :p

I'd certainly like to see the lua for increasing my damage font size. If it helps, I'll even donate $5 when I see it working. :cool:

Miiru 09-01-10 12:09 AM

Soooo any news on this one? >:


All times are GMT -6. The time now is 06:41 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI