WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Add outline to chatfont (https://www.wowinterface.com/forums/showthread.php?t=31189)

Sideshow 03-11-10 07:48 AM

Add outline to chatfont
 
Hello

I recently started using Basic Chat Mods ... because it's simply the best performance wise.

The only thing I miss, is an outline to the font.
I'm sure it's only a couple of lines of code, something like SetFont(font, size, style), but I can't really nail it down.

Anyone ?

Terranell 03-11-10 11:07 AM

I asked the same thing a while ago and mrruben5 and nightcracker helped with:

Code:

for i = 1, 7 do
    local chat = _G["ChatFrame"..i]
    local font, size = chat:GetFont()
    chat:SetFont(font, size, "THINOUTLINE")
    chat:SetShadowOffset(0, 0)
    chat:SetShadowColor(0, 0, 0, 0)
end

Just pop it in your BasicChatMods .lua file, or another addon's .lua or in it's own little addon.

You can comment out the two lines relating to shadow if you don't want the shadows.

Sideshow 03-11-10 11:38 AM

What a great help that was


Thanks :banana:


All times are GMT -6. The time now is 01:36 AM.

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