hack in team chat support

This commit is contained in:
Chris Forbes
2010-05-16 16:18:27 +12:00
parent d87807809d
commit 128f12e88e
5 changed files with 25 additions and 2 deletions

View File

@@ -32,11 +32,12 @@ namespace OpenRA
public List<ChatLine> recentLines = new List<ChatLine>();
public string typing = "";
public bool isChatting = true;
public bool isTeamChat = false;
public void Toggle()
{
if( isChatting && typing.Length > 0 )
Game.IssueOrder( Order.Chat( typing ) );
Game.IssueOrder( isTeamChat ? Order.TeamChat( typing ) : Order.Chat( typing ) );
typing = "";
if( Game.orderManager.GameStarted )