import type { ToolsOverlay } from '@driftengine/tools';
Properties
| Name | Type | Description |
rootreadonly | UiNode | The tree the whole overlay is in. One absolutely placed child per panel. |
undoreadonly | UndoStack | |
visiblereadonly | boolean | |
layoutCountreadonly | number | How many times the tree has been rebuilt and laid out. Read by tests, and by nothing else. |
Methods
sites(): readonly OverlaySite[]
setVisible(visible: boolean): void
| Parameter | Type | Description |
visible | boolean | |
resize(width: number, height: number): void
| Parameter | Type | Description |
width | number | |
height | number | |
| Parameter | Type | Description |
now | number | |
route(event: UiEvent): boolean
Deliver one event. True where the overlay took it, so a host knows not to pass it on.
| Parameter | Type | Description |
event | UiEvent | |
Say the world changed, so the next frame rebuilds. A profiler calls this every frame.