diff --git a/OpenRa.Game/Chrome.cs b/OpenRa.Game/Chrome.cs index 71e59fd0b7..c9d626ad38 100644 --- a/OpenRa.Game/Chrome.cs +++ b/OpenRa.Game/Chrome.cs @@ -258,7 +258,7 @@ namespace OpenRa.Game else { //repairButton.ReplaceAnim(Game.controller.orderGenerator is RepairOrderGenerator ? "pressed" : "normal"); - AddButton(chronoshiftRect, isLmb => Game.controller.ToggleInputMode()); + AddButton(chronoshiftRect, isLmb => HandleChronosphereButton()); } buildPaletteRenderer.DrawSprite(repairButton.Image, chronoshiftDrawPos, PaletteType.Chrome); @@ -291,6 +291,12 @@ namespace OpenRa.Game buildPaletteRenderer.Flush(); } + void HandleChronosphereButton() + { + Sound.Play("slcttgt1.aud"); + Game.controller.ToggleInputMode(); + } + void DrawChat() { var chatpos = new int2(400, Game.viewport.Height - 20);