Layout
This type represents a layout control.

This type inherits ControlContainer type. All of its base methods and fields are also available in this type.
Layouts are used to override the menu's default stacking methods, such as stacking elements horizontally or in a grid. For example, putting two buttons together in the same line:
__call
Constructor
Constructs the layout.
Arguments
Name
Type
Description.
Returns
Type
Description
Layout
Layout instance.
Example
direction
Field
The current direction for this layout.
shouldClip
Field
Whether the layout should respect clipping or not.
shouldCenterize
Field
Whether or not the layout should center elements or not. Only works for some stacking directions.
stackInvisible
Field
Alternative stacking method
showSpinner
Field
Puts a loading icon on top of the entire layout and blurs background. Useful for when menu items are still loading (e.g. grenade helper lists).
stackOffset
Field
Type: Vec2
Overrides the distance between elements inside the layout horizontally and vertically.
Last updated