Originally Posted by Deathshiver
... 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.