CS559 3D World Framework Code
Simple, automatic UI from an object with properly declared parameters
Classes
Type Definitions
AutoUIOptions
AutoUI options for world-scoped UI assembly.
World-level defaults come from GrWorld.setAutoUIOptions(...).
Per-object overrides can be supplied here when constructing AutoUI.
Layout modes:
useLilGUI: true(default): lil-gui panel/folders.useLilGUI: false: CS559LabelSlidercontrols.
Compact slider mode is enabled only in the LabelSlider path by setting:
useLilGUI: false and labelDisplay: "inline".
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
world |
GrWorld |
<optional> |
world that owns UI policy and shared GUI root |
|
width |
number |
<optional> |
300 | panel width in pixels |
where |
InputHelpers.WhereSpec |
<optional> |
explicit container (overrides world default) |
|
widthdiv |
number |
<optional> |
1 | panel width subdivision for multi-column layouts |
adjusted |
boolean |
<optional> |
false | when true, lets lil-gui auto-size labels instead of forcing panel width |
useLilGUI |
boolean |
<optional> |
true | true for lil-gui controls, false for |
labelDisplay |
"inline-block" | "inline" | string |
<optional> |
"inline-block" | slider-label display mode in |
guiPlacement |
"where" | "floating" | "canvas-overlay" |
<optional> |
"canvas-overlay" | lil-gui placement strategy (used only when |