Merge pull request #6949 from pchote/retire-classic-mouse

Retire classic mouse orders
This commit is contained in:
obrakmann
2014-11-15 19:38:32 +01:00
12 changed files with 55 additions and 114 deletions

View File

@@ -56,7 +56,7 @@ namespace OpenRA.Mods.RA
public IEnumerable<Order> Order(World world, CPos xy, MouseInput mi)
{
if (mi.Button == Game.mouseButtonPreference.Cancel)
if (mi.Button == MouseButton.Left)
{
world.CancelInputMode();
yield break;

View File

@@ -146,7 +146,7 @@ namespace OpenRA.Mods.RA
public IEnumerable<Order> Order(World world, CPos xy, MouseInput mi)
{
if (mi.Button == Game.mouseButtonPreference.Cancel)
if (mi.Button == MouseButton.Left)
{
world.CancelInputMode();
yield break;
@@ -157,7 +157,7 @@ namespace OpenRA.Mods.RA
.MaxByOrDefault(a => a.Info.Traits.Contains<SelectableInfo>()
? a.Info.Traits.Get<SelectableInfo>().Priority : int.MinValue);
if (mi.Button == Game.mouseButtonPreference.Action && underCursor == null)
if (mi.Button == MouseButton.Right && underCursor == null)
{
minelayer.World.CancelInputMode();
yield return new Order("PlaceMinefield", minelayer, false) { TargetLocation = xy };

View File

@@ -148,7 +148,7 @@ namespace OpenRA.Mods.RA
public IEnumerable<Order> Order(World world, CPos xy, MouseInput mi)
{
if (mi.Button == Game.mouseButtonPreference.Cancel)
if (mi.Button == MouseButton.Left)
{
world.CancelInputMode();
yield break;

View File

@@ -99,7 +99,7 @@ namespace OpenRA.Mods.RA.Widgets
if (actors.Any())
world.OrderGenerator = new GenericSelectTarget(actors,
"AttackMove", "attackmove", Game.mouseButtonPreference.Action);
"AttackMove", "attackmove", MouseButton.Right);
return true;
}