mouse selection works. multiselect still to come.

This commit is contained in:
Chris Forbes
2009-10-08 22:26:15 +13:00
parent 2e4279664f
commit 40969087f0
3 changed files with 51 additions and 14 deletions

View File

@@ -115,6 +115,15 @@ namespace OpenRa.Game
}
public float2 SelectedSize { get { return this.CurrentImages.First().First.size; } }
public System.Drawing.RectangleF Bounds
{
get
{
var size = SelectedSize;
var loc = CenterLocation - 0.5f * size;
return new System.Drawing.RectangleF(loc.X, loc.Y, size.X, size.Y);
}
}
}
class TurretedUnit : Unit