diff --git a/OpenRa.Game/Chat.cs b/OpenRa.Game/Chat.cs index 031a6018f8..7dfdea53e4 100644 --- a/OpenRa.Game/Chat.cs +++ b/OpenRa.Game/Chat.cs @@ -17,7 +17,10 @@ namespace OpenRa.Game public void Toggle() { if (isChatting && typing.Length > 0) + { Game.controller.AddOrder(Order.Chat(Game.LocalPlayer, typing)); + AddLine(Game.LocalPlayer.PlayerName, typing); + } typing = ""; isChatting ^= true; @@ -37,6 +40,7 @@ namespace OpenRa.Game public void AddLine(string from, string text) { recentLines.Add(Pair.New(from, text)); + Game.PlaySound("rabeep1.aud", false); while (recentLines.Count > logLength) recentLines.RemoveAt(0); } } diff --git a/OpenRa.Game/Chrome.cs b/OpenRa.Game/Chrome.cs index 355ae94aae..f21d274ebf 100644 --- a/OpenRa.Game/Chrome.cs +++ b/OpenRa.Game/Chrome.cs @@ -241,6 +241,8 @@ namespace OpenRa.Game var group = Rules.UnitCategory[item]; var producing = player.Producing(group); + Game.PlaySound("ramenu1.aud", false); + if (isLmb) { if (producing == null)