Module: AutoUI

CS559 3D World Framework Code

Simple, automatic UI from an object with properly declared parameters

Source:

Classes

AutoUI

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: CS559 LabelSlider controls.

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 LabelSlider controls

labelDisplay "inline-block" | "inline" | string <optional>
"inline-block"

slider-label display mode in LabelSlider mode (useLilGUI:false): "inline-block" is the default stacked look, "inline" enables compact single-row sliders

guiPlacement "where" | "floating" | "canvas-overlay" <optional>
"canvas-overlay"

lil-gui placement strategy (used only when useLilGUI:true)

Source: