1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-25 01:39:23 +01:00

made the group component set height based on children by default

This commit is contained in:
Ellpeck 2019-08-13 16:05:18 +02:00
parent f56b7fbeff
commit 83c45ed02d

View file

@ -3,7 +3,8 @@ using Microsoft.Xna.Framework;
namespace MLEM.Ui.Elements {
public class Group : Element {
public Group(Anchor anchor, Vector2 size) : base(anchor, size) {
public Group(Anchor anchor, Vector2 size, bool setHeightBasedOnChildren = true) : base(anchor, size) {
this.SetHeightBasedOnChildren = setHeightBasedOnChildren;
this.IgnoresMouse = true;
}