|
@@ -100,12 +100,11 @@ void Chat::addNachricht( char *txt )
|
|
|
if( msgSound )
|
|
|
msgSound->playSound();
|
|
|
Text * n = new Text( txt );
|
|
|
- if( txt[ 0 ] != '\r' )
|
|
|
- n->append( "\r0xFFFFFFFF" );
|
|
|
verlauf->zTextRenderer()->textFormatieren( n, verlauf->getBreite() - 20 );
|
|
|
if( n->getText()[ n->getLength() - 1 ] != '\n' )
|
|
|
n->append( "\n" );
|
|
|
verlauf->zText()->append( n );
|
|
|
+ verlauf->setSchriftFarbe( verlauf->zText()->getLength() - n->getLength(), verlauf->zText()->getLength(), 0xFFFFFFFF );
|
|
|
if( animation != 4 )
|
|
|
animation = 2;
|
|
|
verlauf->updateVScroll();
|
|
@@ -360,12 +359,11 @@ void ChatFenster::doTastaturEreignis( TastaturEreignis & te )
|
|
|
if( chatClient->chatNachricht( accountId, nachricht->zText()->getText() ) )
|
|
|
{
|
|
|
Text *n = new Text( nachricht->zText()->getText() );
|
|
|
- n->insert( 0, "\r0xFF00FF00" );
|
|
|
- n->append( "\r0xFFFFFFFF" );
|
|
|
verlauf->zTextRenderer()->textFormatieren( n, verlauf->getBreite() - 15 );
|
|
|
if( n->getText()[ n->getLength() - 1 ] != '\n' )
|
|
|
n->append( "\n" );
|
|
|
verlauf->zText()->append( n->getText() );
|
|
|
+ verlauf->setSchriftFarbe( verlauf->zText()->getLength() - n->getLength(), verlauf->zText()->getLength(), 0xFF00FF00 );
|
|
|
n->release();
|
|
|
verlauf->updateVScroll();
|
|
|
nachricht->setText( "" );
|