resonance 1.0.1
Loading...
Searching...
No Matches
mettutorialscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/metscreen.h"
4
5class MetButtonList;
6
7namespace Rnd {
8class Object;
9} // namespace Rnd
10
34public:
43 MetTutorialScreen(MetRenderer *pRenderer, int nPriority);
44
57 static MetTutorialScreen *New(MetRenderer *pRenderer, int nPriority);
58
64
77 virtual void EnterAndShow();
78
92 virtual void HandleCommand(const MetScreenCommand *pCommand);
93
101 virtual void PlayCycleLeftSound(int nSelector);
102
110 virtual void PlayCycleRightSound(int nSelector);
111
123 virtual void OnRepeatingSoundFinished(Rnd::Button *pButton);
124
140 virtual void OnExitFinished();
141
151 virtual void ResolveContainerViews();
152
153private:
154 // The two-button ring. The constructor allocates it and the destructor releases it. +0x8c
155 MetButtonList *mButtonList;
156};
Ring of front-end buttons with one of them selected.
Definition metbuttonlist.h:34
Front-end renderer that owns the screen stack and drives every MetScreen.
Definition metrenderer.h:68
MetScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct a screen and start its container load.
virtual void PlayCycleRightSound(int nSelector)
Play no right cycle sound.
static MetTutorialScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void HandleCommand(const MetScreenCommand *pCommand)
Route one command to the button ring, the selection, or the exit.
virtual void PlayCycleLeftSound(int nSelector)
Play no left cycle sound.
virtual void ResolveContainerViews()
Resolve the base views and add the two buttons.
virtual void EnterAndShow()
Push the companion screens on a first entry, select the first button, and enter.
virtual ~MetTutorialScreen()
virtual void OnExitFinished()
Act on the exit recorded in MetScreen::mExitChoice once the exit animation has finished.
virtual void OnRepeatingSoundFinished(Rnd::Button *pButton)
Record 2 in MetScreen::mExitChoice, exit the three companion screens, and start this screen's exit an...
MetTutorialScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
Selectable widget, as one mesh and one text run plus a palette for each.
Definition button.h:39
Base of every object the renderer can load, resolve by name, and serialise.
Definition object.h:43
The rendering engine.
Definition animhelper.h:3
One navigation command delivered to a screen.
Definition metscreen.h:46