mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-16 18:53:12 +01:00
19 lines
No EOL
753 B
C#
19 lines
No EOL
753 B
C#
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
namespace MLEM.Ui.Elements {
|
|
public class Group : Element {
|
|
|
|
public Group(Anchor anchor, Vector2 size, bool setHeightBasedOnChildren = true) : base(anchor, size) {
|
|
this.SetHeightBasedOnChildren = setHeightBasedOnChildren;
|
|
this.CanBeSelected = false;
|
|
}
|
|
|
|
public override void Draw(GameTime time, SpriteBatch batch, float alpha, BlendState blendState, SamplerState samplerState, Matrix matrix) {
|
|
// since the group never accesses its own area when drawing, we have to update it manually
|
|
this.UpdateAreaIfDirty();
|
|
base.Draw(time, batch, alpha, blendState, samplerState, matrix);
|
|
}
|
|
|
|
}
|
|
} |