Fixing issue with UI objects and collision with mouse pointer

This commit is contained in:
nathan@daedalus
2012-03-23 23:54:58 -05:00
parent 1d8e6f1493
commit a47ec71bc2
3 changed files with 13 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ using System.Text;
namespace Axios.Engine.Structures
{
class AxiosPoint
public class AxiosPoint
{
private float _x;
private float _y;

View File

@@ -5,7 +5,7 @@ using System.Text;
namespace Axios.Engine.Structures
{
class AxiosRectangle
public class AxiosRectangle
{
private AxiosPoint _point;
@@ -73,6 +73,10 @@ namespace Axios.Engine.Structures
_point = new AxiosPoint(X, Y);
}
public override string ToString()
{
return String.Format("{{X:{0} Y:{1} Width:{2} Height:{3}}}", _point.X, _point.Y, Width, Height);
}
}
}