Reply
Thread Tools Display Modes
Unread 03-25-14, 12:29 AM   #1
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 428
Chat channel different sizes

I wonder if it's possible to have chat channels in different sizes while in the same window.

Like say have General chat in a 12 point font but trade be 10 point and like that.

Only reason I'm asking is because my newest monitor is 42 inches of real estate so I'm running 18 and 16 point fonts but I think it would be nice to have for a bit more of an organized approach.
10leej is offline   Reply With Quote
Unread 03-25-14, 04:54 AM   #2
Lombra
A Cobalt Mageweaver
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 215
Not reastically, no. Would involve some extensive hacking. Or maybe it's not that hard, Idk.
__________________
Grab your sword and fight the Horde!
Lombra is online now   Reply With Quote
Unread 03-25-14, 03:40 PM   #3
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,267
It's probably easier to write your own chat frame from scratch than try to hack a ScrollingMessageFrame to show different channels' messages in different sizes (or fonts, or outline weights, etc).

Also, I think the result of having multiple font sizes in the same chat frame would be very visually unappealing.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline   Reply With Quote
Unread 03-26-14, 01:35 AM   #4
Clamsoda
A Cobalt Mageweaver
Join Date: Nov 2011
Posts: 242
What would different font sizes do for organization that chat tabs, chat windows, and chat colors couldn't?
Clamsoda is offline   Reply With Quote
Unread 03-26-14, 02:04 AM   #5
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 428
Originally Posted by Clamsoda View Post
What would different font sizes do for organization that chat tabs, chat windows, and chat colors couldn't?
Well take stuff I want to see but not care a huge amount about and have them smaller. Emotes and stuff.
10leej is offline   Reply With Quote
Unread 05-13-14, 10:44 PM   #6
sylvanaar
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 64
At one point in Prat I hacked up the scrollingmessageframe to try and improve it.

One of the enhancements I made was to lower the alpha on all the lines. Then I could raise the alpha on lines containing text of interest, and they would appear highlighted.

My use case was when you would mouse over the name of the message sender all the messages from that sender in the chatframe would be highlighted, the others faded out. When you stopped mousing over the name the text would display normally.

It was easy to do, you can probably get the code out of an old version of Prat.

By the way. You can also do what you are talking about, and I have some code in and old version of Prat that you could use as a starting point. There was a module called ScrollingMessageFrameHacks I think.

You have one main problem. You either have to dynamically modify the line heights to suit the font, or deal with the visual ugliness of lots of space in between lines when the font size is small.

ScrollingMessageFrame lines are easy to deal with, they just anchor thier bottom to the top of the previous line and stack upwards. Each line of text will grow vertically to enclose the text it contains. You will have to manage hiding lines that overflow the top of the chatframe yourself.

I don't have an image of the highlighting, but this one shows how it is possible to realign the text



I don't really recommend doing this though, because you have to do everything in OnUpdate.

Last edited by sylvanaar : 05-13-14 at 11:43 PM.
sylvanaar is offline   Reply With Quote
Unread 05-13-14, 11:44 PM   #7
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 428
Which version of prat? I've never used the addon myself.
10leej is offline   Reply With Quote
Unread 05-14-14, 12:09 AM   #8
sylvanaar
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 64
It is in version 3.2.10 from 2009.
sylvanaar is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » General Authoring Discussion » Chat channel different sizes

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