Select Target notification for chronosphere

This commit is contained in:
Paul Chote
2010-01-03 22:17:08 +13:00
parent de1ae72229
commit 326cda76cc

View File

@@ -258,7 +258,7 @@ namespace OpenRa.Game
else
{
//repairButton.ReplaceAnim(Game.controller.orderGenerator is RepairOrderGenerator ? "pressed" : "normal");
AddButton(chronoshiftRect, isLmb => Game.controller.ToggleInputMode<ChronosphereSelectOrderGenerator>());
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<ChronosphereSelectOrderGenerator>();
}
void DrawChat()
{
var chatpos = new int2(400, Game.viewport.Height - 20);