Documentation added to Component.*, Entity, EntityManager, Grid, GUI.* and Utility classes.

Minor cleanups.
This commit is contained in:
Simon Holmberg
2012-10-18 01:34:08 +02:00
parent c59ff9778a
commit 9f47ad9a57
14 changed files with 424 additions and 100 deletions
+7 -13
View File
@@ -9,19 +9,20 @@ using Microsoft.Xna.Framework.Input;
namespace DepthsBelow.GUI
{
/// <summary>
/// A button frame which can handle clicks.
/// </summary>
public class Button : Frame
{
public delegate void OnClickHandler(Point pos);
/// <summary>
/// Handler of OnClick events.
/// </summary>
public OnClickHandler OnClick;
private MouseState lastMouseState;
/*public void OnClick(Point pos)
{
Debug.WriteLine(this + " was clicked at (" + pos.X + "," + pos.Y + ")");
}*/
public Button()
: base()
{
@@ -29,7 +30,7 @@ namespace DepthsBelow.GUI
}
public Button(Frame parent)
: this()
: this()
{
this.Parent = parent;
}
@@ -59,12 +60,5 @@ namespace DepthsBelow.GUI
lastMouseState = ms;
}
public override void Draw(SpriteBatch spriteBatch)
{
//spriteBatch.DrawString(Font, Value, new Vector2(Rectangle.X + Parent.Rectangle.X, Rectangle.Y + Parent.Rectangle.Y), Color);
base.Draw(spriteBatch);
}
}
}