From 326cda76cc232deed841de7c468c897e0ca97905 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 3 Jan 2010 22:17:08 +1300 Subject: [PATCH] Select Target notification for chronosphere --- OpenRa.Game/Chrome.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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);