Your theme draws the interface. The Standard components handle common game behavior, such as browsing songs, starting play and opening results. Import RhythmGameQml to use them. For a first theme, follow the tutorial; use this reference to look up inputs, actions and customization options.
Add one of these components to the screen you are building:
| Screen | Component | What your theme supplies |
|---|---|---|
| Main menu | StandardMainController | Menu buttons and artwork |
| Song selection | StandardSelectController | StandardSelectListView delegates, or a custom wheel |
| Decide | StandardDecideFlow | Chart or course details |
| Gameplay | StandardGameplayFlow | Lanes, notes, scores and other visuals |
| Chart or course result | StandardResultInput | Score displays and Continue/Retry buttons |
| Multiplayer browser | StandardMultiplayerFlow | Room list and room controls |
Each includes the helpers it needs. For example, StandardGameplayFlow already includes StandardGameplayInput. Adding both would handle input twice. Each type page lists its included components.
Declare the matching required property on your screen's root object:
| Screen | Root declaration |
|---|---|
| Decide or gameplay | required property GameplayContext gameplay |
| Chart result, including a course stage | required property ResultContext result |
| Course summary | required property CourseResultContext result |
| Settings | required property string initialSection |
The game supplies these values when it creates a screen. Bind gameplay or result to the screen's Standard component. Do not construct or destroy the supplied contexts or scores yourself.
GameplayContext follows the current chart and players as a course advances. ResultContext keeps the completed chart's metadata and scores fixed. CourseResultContext describes the whole course. Read their type pages for player counts, missing data and lifetime rules.
Screen navigation explains globalRoot operations, settings section names, and opening charts or saved results.
For shared services, start with the Rg singleton. Rg.profileList.mainProfile supplies the active profile. During play or results, use each player's supplied profile instead. The Player reference describes live scores, columns, note models and timing.
These components can be added without replacing the screen's standard flow:
| Task | Component |
|---|---|
| Connect a song list to a controller | StandardSelectListView |
| Load saved replay events or gauge history | ScoreDetails |
| Show an online rank or open its website | StandardRanking |
| Convert saved note speed into drawing coordinates | StandardGameplayViewport |
| Show a score target or personal best | StandardGameplayTarget |
| Draw BGA and the miss layer | StandardGameplayBga |
| Add Arena ready controls and chat | StandardArenaSelectOverlay |
| Add Arena standings during play | StandardArenaGameplayOverlay |
| Add Arena standings on results | StandardArenaResultOverlay |
Selection already supplies StandardRanking as its ranking property and StandardSelectPreview as preview. Customize those instances instead of creating duplicates. Arena overlays belong to the screen; the game does not add them automatically.
Start with properties and signals on the complete component. For example, StandardGameplayFlow::startReady and StandardGameplayFlow::finishReady let an animation delay play or results while the flow still saves scores.
Action callbacks have two common forms:
try...Action callback runs first. Return true when it handled the request; return false or undefined to use the standard action.A request signal asks your theme to act; it does not report success. For example, StandardSelectController::moveRequested asks your wheel to move. Read each method's return-value description: accepting a request does not always mean a screen opened or a load succeeded.
A screen may stay loaded while another screen is shown. The game disables inactive screens. Child Items, including the Standard components, inherit that state. Standard components stop their own input, timers and audio.
Your own Shortcut and Connections objects do not inherit an Item's enabled state. Bind their enabled properties to your screen where appropriate, and stop screen-owned audio and animations while inactive. Hiding an Item alone does not disable all of its behavior.
Use these smaller pieces when the complete component does not fit:
| Task | Starting point |
|---|---|
| Menu actions without music | StandardMainActions |
| Standard browsing with custom controls | StandardSelectState |
| Custom folder loading and history | StandardSelectSession |
| Open selections with custom browsing | StandardSelectActions |
| Navigation or bound selection keys | StandardSelectNavigation or StandardSelectInput |
| Selection function keys | StandardSelectShortcuts |
| Repeat entries for a circular wheel | StandardSelectModelAdapter |
| Shared sort and replay labels | StandardSelectOptions |
| Preview audio or library reload | StandardSelectPreview or StandardSelectReload |
| Gameplay input without the standard flow | StandardGameplayInput |
| Retry without an input gesture | StandardChartRetry |
| Detect a scoring hit | StandardGameplayAttemptState |
| Bound lane-key checks | StandardInputKeys |
| Speed and cover input | StandardGameplaySpeedControls |
| Cancel a group of asynchronous requests | PendingReplyGroup |
Replacing StandardGameplayFlow makes your theme responsible for startup, score saving, results and course progression. GameplayContext documents the operations for that case. Use the complete flow when you only need to change the screen's appearance.