1
0

Add rank prefix and suffix to player name in chat (#3730)

Fixes issue #1721
This commit is contained in:
Heiko Hund
2017-05-27 03:15:56 +02:00
committed by worktycho
parent 73a3c4e3be
commit a0341d561a
4 changed files with 49 additions and 1 deletions

View File

@@ -1562,7 +1562,11 @@ void cClientHandle::HandleChat(const AString & a_Message)
{
Color.clear();
}
Msg.AddTextPart(AString("<") + m_Player->GetName() + "> ", Color);
Msg.AddTextPart("<");
Msg.ParseText(m_Player->GetPrefix());
Msg.AddTextPart(m_Player->GetName(), Color);
Msg.ParseText(m_Player->GetSuffix());
Msg.AddTextPart("> ");
Msg.ParseText(Message);
Msg.UnderlineUrls();
cRoot::Get()->BroadcastChat(Msg);