Cache chat conversations in the lobby and in-game

This preserves the chat content from the lobby and makes it available
in-game, and also makes all chat content available to the end-game
dialog.
This commit is contained in:
Oliver Brakmann
2014-09-25 21:28:16 +02:00
parent ef35ee2204
commit 36b5097fa0
5 changed files with 57 additions and 14 deletions

View File

@@ -256,7 +256,6 @@ namespace OpenRA
{
// Clear static state if we have switched mods
LobbyInfoChanged = () => { };
AddChatLine = (a, b, c) => { };
ConnectionStateChanged = om => { };
BeforeGameStart = () => { };
Ui.ResetAll();
@@ -652,7 +651,10 @@ namespace OpenRA
state = RunStatus.Restart;
}
public static Action<Color, string, string> AddChatLine = (c, n, s) => { };
public static void AddChatLine(Color color, string name, string text)
{
orderManager.AddChatLine(color, name, text);
}
public static void Debug(string s, params object[] args)
{