Select Target notification for chronosphere
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user