Thread Tools Display Modes
01-17-10, 10:13 PM   #1
Thander
A Theradrim Guardian
Join Date: Apr 2009
Posts: 59
How to change nUI font without changing chat font?

Is there a way to change the font that nUI uses with changing the chat font?

I like the default font for the chat frame and combat log, but want a different one for the nUI stuff. It seems like they are linked somehow. The combat log does not seem to be linked. It keeps the default font even when changing nUI's font. How do I do the same for the chat frame?
 
01-18-10, 08:12 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yes -- you can, but you'll have to modify the code to do it...

You can edit [ Interface > AddOns > nUI > Integration > nUI_ChatFrame.lua ] and locate the following section of code

Code:
    -- set the chat frame font size
--[[
    if frame.fontsize ~= fontsize then
        frame.fontsize = fontsize;
        
        for i=1, NUM_CHAT_WINDOWS do
            if i ~= 2 then
                _G["ChatFrame"..i]:SetFont( nUI_L["font1"], fontsize * 2, "OUTLINE" );
            end
        end
    end
]]--
Comment that block out by adding the two lines I highlighted in blue
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
01-18-10, 10:58 PM   #3
Thander
A Theradrim Guardian
Join Date: Apr 2009
Posts: 59
Cool, thanks for the quick response.
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Technical Support » How to change nUI font without changing chat font?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off