Supplies main-menu actions, Start input and background music. More...
| Import Statement: | import RhythmGameQml |
| Inherits: |
Place this component inside the main screen. It inherits the screen's enabled state and includes StandardMainActions, so buttons can call openSelect(), openArena(), openSettings() and quit().
The included backgroundMusic plays the active profile's main-menu track while the controller is enabled. Change its source, volume or fadeInMillis to customize playback. Set backgroundMusic to null to omit it. StandardMainActions is also available on its own for menus that only need the actions and Start input.
backgroundMusic : AudioPlayer |
Looping main-menu music. Its source defaults to the active profile's bgmPath followed by "main". The player accepts a local file path. Disabling the controller stops playback.
Customize the player's properties, set it to null, or supply another AudioPlayer. A replacement owns its playback binding and must stop when the controller is disabled.