2019-08-10 13:44:48 +02:00
|
|
|
using Microsoft.Xna.Framework;
|
2019-12-29 15:25:33 +01:00
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
2019-08-10 13:44:48 +02:00
|
|
|
|
|
|
|
namespace MLEM.Ui.Elements {
|
|
|
|
public class Group : Element {
|
|
|
|
|
2019-08-13 16:05:18 +02:00
|
|
|
public Group(Anchor anchor, Vector2 size, bool setHeightBasedOnChildren = true) : base(anchor, size) {
|
|
|
|
this.SetHeightBasedOnChildren = setHeightBasedOnChildren;
|
2019-08-28 18:27:17 +02:00
|
|
|
this.CanBeSelected = false;
|
2019-08-10 13:44:48 +02:00
|
|
|
}
|
|
|
|
|
2019-12-29 15:25:33 +01:00
|
|
|
public override void Draw(GameTime time, SpriteBatch batch, float alpha, BlendState blendState, SamplerState samplerState, Matrix matrix) {
|
|
|
|
this.UpdateAreaIfDirty();
|
|
|
|
base.Draw(time, batch, alpha, blendState, samplerState, matrix);
|
|
|
|
}
|
|
|
|
|
2019-08-10 13:44:48 +02:00
|
|
|
}
|
|
|
|
}
|