RMB to cancel orders
This commit is contained in:
@@ -27,6 +27,9 @@ namespace OpenRa.Game
|
||||
orderGenerator.Order(game, new int2((int)xy.X, (int)xy.Y)).Apply(game);
|
||||
// todo: route all orders through netcode
|
||||
}
|
||||
|
||||
if (mi.Button == MouseButtons.Right && mi.Event == MouseInputEvent.Down)
|
||||
orderGenerator = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace OpenRa.Game
|
||||
var stuffFromOtherPlayers = network.Tick(); // todo: actually use the orders!
|
||||
world.Update();
|
||||
|
||||
viewport.DrawRegions(this);
|
||||
viewport.DrawRegions();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace OpenRa.Game.Graphics
|
||||
|
||||
public void AddRegion(Region r) { regions.Add(r); }
|
||||
|
||||
public void DrawRegions(Game game)
|
||||
public void DrawRegions()
|
||||
{
|
||||
float2 r1 = new float2(2, -2) / Size;
|
||||
float2 r2 = new float2(-1, 1);
|
||||
|
||||
Reference in New Issue
Block a user