View Single Post
11-18-12, 01:43 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Deathshiver View Post
... messages that span multiple lines -- I'm not even sure of a way to detect that for adding in blank lines on the player name frame. Is there perhaps a way to detect when it automatically line breaks the messages? (Or perhaps manually break them so you can count?) If I were to go about doing this, is using a chat frame even the right way to go about it?
Probably the simplest solution would be to replace the default chat frame altogether with totally new frames. Then, you can just use anchoring to take care of things:

Code:
*------* *---------------------*
| name | | single-line message |
*------* *---------------------*
*------* *---------------------*
| name | | this message wraps  |
*------* | to multiple lines   |
         *---------------------*
*------* *---------------------*
| name | | single-line message |
*------* *---------------------*
The topleft of each message is anchored to the topright of each name, and the topright of each name is anchored to the bottomleft of the previous message.
__________________
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