Bug #32 fixed (a little hacky)
This commit is contained in:
@@ -10,7 +10,7 @@ namespace OpenRa
|
||||
|
||||
public List<Tuple<Color, string, string>> recentLines = new List<Tuple<Color, string, string>>();
|
||||
public string typing = "";
|
||||
public bool isChatting = false;
|
||||
public bool isChatting = true;
|
||||
|
||||
public void Toggle()
|
||||
{
|
||||
@@ -18,9 +18,16 @@ namespace OpenRa
|
||||
Game.IssueOrder(Order.Chat(typing));
|
||||
|
||||
typing = "";
|
||||
if (Game.orderManager.GameStarted)
|
||||
isChatting ^= true;
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
typing = "";
|
||||
isChatting = false;
|
||||
}
|
||||
|
||||
public void TypeChar(char c)
|
||||
{
|
||||
if (c == '\b')
|
||||
|
||||
@@ -214,6 +214,7 @@ namespace OpenRa
|
||||
|
||||
public static void StartGame()
|
||||
{
|
||||
Game.chat.Reset();
|
||||
var available = world.Map.SpawnPoints.ToList();
|
||||
var taken = new List<int2>();
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace OpenRa.Graphics
|
||||
world.WorldRenderer.Draw();
|
||||
Game.chrome.Draw( world );
|
||||
|
||||
|
||||
if( Game.orderManager.Connection.ConnectionState == ConnectionState.NotConnected )
|
||||
Game.chrome.DrawDialog("Connection lost.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user