Documentation added to Component.*, Entity, EntityManager, Grid, GUI.* and Utility classes.
Minor cleanups.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user