ConfigPanel Module
Configurator side panel — renders UI and handles input.
Functions and values
| Function or value |
Description
|
Full Usage:
buildPanel config panelState windowWidth windowHeight presetNames activePresetName
Parameters:
VizConfig
panelState : ConfigPanelState
windowWidth : float32
windowHeight : float32
presetNames : string list
activePresetName : string option
Returns: Element list
|
Build scene elements for the panel given current config and panel state. Returns empty list when panel is closed.
|
Full Usage:
handleInput event config panelState windowWidth windowHeight
Parameters:
InputEvent
config : VizConfig
panelState : ConfigPanelState
windowWidth : float32
windowHeight : float32
Returns: ConfigPanelInputResult
|
Handle a mouse/keyboard event within the panel. Returns updated panel state, optional updated VizConfig, and optional host action.
|
Full Usage:
hitTest x y panelState windowWidth
Parameters:
float32
y : float32
panelState : ConfigPanelState
windowWidth : float32
Returns: bool
|
Test whether a screen-space point falls within the panel bounds.
|
|
Creates the initial (closed) panel state.
|
Full Usage:
panelWidth
Returns: float32
|
Fixed panel width in pixels.
|
|
FSBarV1_Archived