TDebugPanel
Hierarchy
- default
- TDebugPanel
Index
Constructors
constructor
Properties
publicdead
publicname
publicrows
publicstartOpen
publicuuid
Methods
publicaddButtons
Add new row to the section with buttons
Parameters
label: string
Text label for row
rest...buttons: TButton[]
Array of buttons for the row
Returns default
publicaddCheckbox
Add new row to the section with a checkbox
Parameters
label: string
startingValue: boolean
onChange: (value: boolean) => void
Returns default
publicaddColorPicker
Parameters
label: string
startingValue: vec3
onChange: (value: vec3) => void
Returns default
publicaddFredValue
Add new row to the section with string value from Fred stats
Parameters
label: string
Text label for row
valueKey: string
Returns default
publicaddInput
Add new row to the section with an input
Parameters
label: string
inputType: TDebugInputTypes
startingValue: string
onChange: (value: string) => void
optionalinputProps: TDebugInputProps
Returns default
publicaddSection
Add new section to the debug panel
Parameters
name: string
Name of section
startOpen: boolean = false
Returns default
publicaddSelect
Add new row to the section with a select box
Parameters
label: string
options: TDebugSelectOption[]
startingValue: string
onChange: (value: string) => void
Returns default
publicaddValue
Add new row to the section with string value
Parameters
label: string
Text label for row
updateFunction: TUpdateFunction
Function to return value every update
indentLevel: number = 0
Returns default
publicgetData
Returns TDebugPanelSectionSerializedData
publicremove
Remove section from the debug panel
Returns void
publictoggle
Toggle visibily of the debug panel
Returns void
publicupdate
Runs every update to keep rows up to date
Parameters
engine: default
delta: number
Returns void
The debug panel holds a number of stats to display on the UI. The panel also acts as the default section.