Thread Tools Display Modes
03-25-14, 12:29 AM   #1
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
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.
__________________
Tweets YouTube Website
  Reply With Quote
03-25-14, 04:54 AM   #2
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Not reastically, no. Would involve some extensive hacking. Or maybe it's not that hard, Idk.
__________________
Grab your sword and fight the Horde!
  Reply With Quote
03-25-14, 03:40 PM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
03-26-14, 01:35 AM   #4
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
What would different font sizes do for organization that chat tabs, chat windows, and chat colors couldn't?
  Reply With Quote
03-26-14, 02:04 AM   #5
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
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.
__________________
Tweets YouTube Website
  Reply With Quote
05-13-14, 10:44 PM   #6
sylvanaar
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 92
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.
  Reply With Quote
05-13-14, 11:44 PM   #7
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Which version of prat? I've never used the addon myself.
__________________
Tweets YouTube Website
  Reply With Quote
05-14-14, 12:09 AM   #8
sylvanaar
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 92
It is in version 3.2.10 from 2009.
  Reply With Quote

WoWInterface » 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