Creates a panel that stacks its children vertically, or horizontally when isVertical is
false, with spacing pixels between them.
Give a vertical panel a width and a horizontal one a height; the other size grows with the children.
The name, the direction, the spacing, the optional sizes and the colors
The stack panel
Reads whether a stack panel stacks its children top to bottom.
The stack panel
True when the panel is vertical
Reads the gap in pixels between the children of a stack panel.
The stack panel
The spacing
Reads the width of a stack panel, as a pixel string or a fraction.
The stack panel
The width
Reads the height of a stack panel, as a pixel string or a fraction.
The stack panel
The height
Switches a stack panel between stacking its children top to bottom, when true, and left to right.
The stack panel and the flag
The same stack panel
Sets the gap in pixels between the children of a stack panel.
The stack panel and the spacing
The same stack panel
Sets the width of a stack panel, as a pixel string or a fraction of the parent; a horizontal panel sizes its width from its children instead.
The stack panel and the width
The same stack panel
Sets the height of a stack panel, as a pixel string or a fraction of the parent; a vertical panel sizes its height from its children instead.
The stack panel and the height
The same stack panel
A stack panel lays its child controls out one after another, top to bottom or left to right, with a spacing between them, and is the usual way to build a column of controls. Add it to a GUI texture and its children to it with
container.addControls.