Thread Tools Display Modes
07-11-10, 04:34 PM   #21
Aywn
A Deviate Faerie Dragon
 
Aywn's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jun 2008
Posts: 10
Originally Posted by spiel2001 View Post
That explains much... I didn't realize you were modifying the nUI source.

You do realize that once you go in and start changing nUI code, all bets are off in terms of me being able to support it, yes?

if you would have looked at my orignal message you might have noted I quoted some of your source code and also mentioned that "as a beginning lua programmer I am very thankful for the notations you put in the files so I can see what does what." So I guess I assumed that was understood. Anyway the addon is awesome and the only thing I would like to add is a font can you tell me how?

-Aywn
__________________
Friends don't let friends be Republican
 
07-11-10, 04:45 PM   #22
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yeah -- I do recall you saying that... just failed to connect the dots. Between work, nUI and family, it's a wonder I can remember to eat sometimes.

As for fonts... you can change which font nUI is using as the default font in [ Interface > AddOns > nUI > Main > localization.lua ] -- but that does not change font for the chat frames.

For that, you would have to go back and add back the code I removed a few versions back. Edit [ Interface > AddOns > nUI > Integration > nUI_ChatFrame.lua ] and (assuming you've upgraded to 5.06.29) scroll down to the following code segment and add the line I highlighted in the reparentChatFrame() method...

Code:
    for i=1, NUM_CHAT_WINDOWS * 2 do
        
        local cframe = _G["ChatFrame"..i];
        
        if cframe then
                        
            if i ~= 2 then -- we handle the combat log separately
                
                cframe.is_chat_frame = (i == 1);
                cframe.buttonSide = "RIGHT";
                cframe:SetFont( "font file path", fontsize, "OUTLINE" );

                if cframe.is_chat_frame or cframe.isDocked then
where "font file path" is the path to the font you want, relative to the [ World of Warcraft ] directory and "fontsize" is how big you want the font (in screen units) -- note that '\' is the escape character, so you need to double them up in the path... "Interface\\Fonts\\MyCoolFont.ttf"
__________________

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/
 
07-12-10, 09:29 AM   #23
Aywn
A Deviate Faerie Dragon
 
Aywn's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jun 2008
Posts: 10
Originally Posted by spiel2001 View Post
Yeah -- I do recall you saying that... just failed to connect the dots. Between work, nUI and family, it's a wonder I can remember to eat sometimes.

As for fonts... you can change which font nUI is using as the default font in [ Interface > AddOns > nUI > Main > localization.lua ] -- but that does not change font for the chat frames.

For that, you would have to go back and add back the code I removed a few versions back. Edit [ Interface > AddOns > nUI > Integration > nUI_ChatFrame.lua ] and (assuming you've upgraded to 5.06.29) scroll down to the following code segment and add the line I highlighted in the reparentChatFrame() method...

Code:
    for i=1, NUM_CHAT_WINDOWS * 2 do
        
        local cframe = _G["ChatFrame"..i];
        
        if cframe then
                        
            if i ~= 2 then -- we handle the combat log separately
                
                cframe.is_chat_frame = (i == 1);
                cframe.buttonSide = "RIGHT";
                cframe:SetFont( "font file path", fontsize, "OUTLINE" );

                if cframe.is_chat_frame or cframe.isDocked then
where "font file path" is the path to the font you want, relative to the [ World of Warcraft ] directory and "fontsize" is how big you want the font (in screen units) -- note that '\' is the escape character, so you need to double them up in the path... "Interface\\Fonts\\MyCoolFont.ttf"

Thank you very much. I know how it is work, wife, WoW, and maybe sleep. Keep up the good work.

-Aywn
__________________
Friends don't let friends be Republican
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Suggestion Box » A chat suggestion

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