Skip to main content

Title Screen

The “title screen” GUI provides a start screen with an action list (for example: Start, Load, etc.). The list is defined on the client by default and can be overridden by the server.

Client-side usage (autoDisplay)

Load the GUI on the client to display it without the server. Add it in the client config under gui with autoDisplay: true.
The component emits a select interaction with { id, index, entry }. When localActions: true:
  • selecting start hides the title screen
  • selecting load hides the title screen and displays the save/load GUI with saveLoad

Client-side default list

Si le serveur ne fournit pas entries, la liste par defaut du client est:
To replace the title screen completely, register your own GUI with the rpg-title-screen ID. The data and interaction contract is documented in Prebuilt GUI Contracts. For example, a custom component should emit a select interaction with:

Style

Les classes CSS sont dans:
  • packages/ui-css/src/primitives/title-screen.css
Vous pouvez changer la typo, le fond, ou les animations directement dans ce fichier.