Selkies
Developer ReferenceDashboard (Wish)Components

components/DashboardOverlay

Functions

DashboardOverlay()

function DashboardOverlay(__namedParameters): ReactElement<unknown, string | JSXElementConstructor<any>>;

Defined in: components/DashboardOverlay.tsx:48

Renders the top menu and the gamepad card into container.

Touch-gamepad state lives here alone, not in the menu or the card, so the menu entry, the Ctrl+Shift+G hotkey and the card read one value and the hotkey works even while the menu is unmounted (hidden UI, viewers). The viewer flag is seeded from the URL so a shared or player viewer never sees control UI in the gap before the server's clientRoleUpdate lands.

Parameters

ParameterType
__namedParametersDashboardOverlayProps

Returns

ReactElement<unknown, string | JSXElementConstructor<any>>

References

default

Renames and re-exports DashboardOverlay

On this page

Edit on GitHub