Exemplo n.º 1
0
        public GuiStackContainer AddRow(Action <GuiStackContainer> rowBuilder = null)
        {
            var stack = new GuiStackContainer()
            {
                Orientation = Orientation == Orientation.Horizontal ? Orientation.Vertical : Orientation.Horizontal,
                ChildAnchor = ChildAnchor.SwapXY()
            };

            _defaultRowBuilder?.Invoke(stack);
            rowBuilder?.Invoke(stack);

            _rows.Add(stack);
            AddChild(stack);
            return(stack);
        }
Exemplo n.º 2
0
 protected override void Reset()
 {
     base.Reset();
     childAlignment = ChildAnchor.Center;
 }
Exemplo n.º 3
0
 protected override void Reset()
 {
     base.Reset();
     childAlignment = ChildAnchor.Nomodify;
 }