GUILayoutScope

The scope in which a GUILayout builds the element tree of gui.

Properties

Link copied to clipboard
val body: Body

the root element of the GUI's control manager

Link copied to clipboard
val gui: GUI

the GUI that is being laid out

Functions

Link copied to clipboard

Add the border that collapses and expands the sidebar when clicked. Uses the collapse-border class.

Link copied to clipboard

Add a dropdown that selects the compartment to show: the selected compartment is expanded, all others are collapsed. Uses the compartment-selector class. Can be called at most once.

Link copied to clipboard

Add the scrollable sidebar that holds the compartments. Uses the sidebar class. Must be called exactly once.

Link copied to clipboard

Add a canvas that takes up the remaining space, available through GUI.canvas. Uses the full-canvas class.

Link copied to clipboard

Add the toolbar with the randomize, load and save buttons. Uses the toolbar class.