MiniGUI
A compact version of GUI that shows a single horizontal bar at the bottom of the screen. A dropdown on the left selects the compartment to show, the controls of that compartment are laid out horizontally next to it, followed by the toolbar when showToolbar is set. When the controls do not fit, they scroll horizontally, with the wheel, a trackpad or the scrollbar, which shows while scrolling and fades out after it.
Objects are added and removed like with GUI, parameter values are persisted and saved in the same way.
Parameters
the base color of the bar; GUIAppearance.barWidth is not used
the width of every control in pixels
Constructors
Properties
the bindings of the parameters of the objects that the GUI shows
The canvas created by GUILayoutScope.sideCanvas, see enableSideCanvas.
whether compartments start collapsed, also those that were added and were not collapsed or expanded since
The history of the changes to the parameters, for undo and redo: command or control and z undoes, with shift or control and y redoes, unless undoShortcuts is false
Show a header above every compartment that collapses and expands it when clicked. Must be set before the GUI is installed with extend().
The style sheets for the GUI's elements, applied on top of defaultStyles. Must be set before the GUI is installed with extend().
true when the keys for undo and redo are used by the GUI
Functions
Can be called by the user to update the gui using an object deserialized externally. Allows the user to load a larger json object, deserialize it, and use part of it to update the GUI. Complements .toObject().
asks for a file of parameters and loads it
Moves the values of the parameters towards random values by strength, see ParameterBindings.randomize
asks for a file to save the parameters to, in the folder of the parameters at first
Expand the compartment with label and collapse all other compartments.