1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-04 06:13:36 +02:00
MLEM/MLEM.Ui/Elements/Panel.cs
2019-08-09 19:28:48 +02:00

21 lines
633 B
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MLEM.Textures;
namespace MLEM.Ui.Elements {
public class Panel : Element {
private readonly NinePatch texture;
public Panel(Anchor anchor, Vector2 size, Point positionOffset, NinePatch texture) : base(anchor, size, positionOffset) {
this.texture = texture;
this.ChildPadding = new Point(5);
}
public override void Draw(GameTime time, SpriteBatch batch, Color color) {
batch.Draw(this.texture, this.DisplayArea, color);
base.Draw(time, batch, color);
}
}
}