resonance 1.0.1
Loading...
Searching...
No Matches
metsolowinscreen.h
Go to the documentation of this file.
1#pragma once
2
4#include "met/metscreen.h"
5
6class MetButtonList;
7
41class MetSoloWinScreen : public MetScreen, public MemcardUser {
42public:
51 MetSoloWinScreen(MetRenderer *pRenderer, int nPriority);
52
58
71 static MetSoloWinScreen *New(MetRenderer *pRenderer, int nPriority);
72
83 virtual void EnterAndShow();
84
96 virtual void HandleCommand(const MetScreenCommand *pCommand);
97
105 virtual void PlayLeaveSound(int nSelector);
106
114 virtual void PlayCycleLeftSound(int nSelector);
115
123 virtual void PlayCycleRightSound(int nSelector);
124
135 virtual void OnRepeatingSoundFinished(Rnd::Button *pButton);
136
145 virtual void OnEnterFinished();
146
161 virtual void OnExitFinished();
162
174 static void SetDifficultyUnlocked(int nUnlocked);
175
176private:
177 // The three-button ring. The constructor allocates it and the destructor releases it. +0x90
178 MetButtonList *mButtonList;
179 // Set while a difficulty unlocked by the finished stage still needs committing.
180 // SetDifficultyUnlocked() writes it from MetStageFinishScreen slot 36, the constructor clears
181 // it, and slot 36 clears it again after committing. +0x94
182 int mDifficultyUnlocked;
183};
Receiver notified once a memory-card task has finished.
Definition memcarduser.h:24
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.
static MetSoloWinScreen * New(MetRenderer *pRenderer, int nPriority)
Allocate and construct the screen.
virtual void OnEnterFinished()
Select the prompt layout with no back button and post the selected button's prompt.
virtual void PlayCycleRightSound(int nSelector)
Play no right cycle sound.
virtual void EnterAndShow()
Build the three buttons, title the screen, and push the three companion panels.
virtual void OnExitFinished()
Commit the session result and go on to whichever screen the selection chose.
virtual ~MetSoloWinScreen()
virtual void HandleCommand(const MetScreenCommand *pCommand)
Route one command to the button ring or to the selection.
static void SetDifficultyUnlocked(int nUnlocked)
Record on the registered solo win screen whether the finished stage unlocked a difficulty.
virtual void PlayLeaveSound(int nSelector)
Play no leave sound.
virtual void OnRepeatingSoundFinished(Rnd::Button *pButton)
Exit the four companion screens and start this screen's exit animation.
virtual void PlayCycleLeftSound(int nSelector)
Play no left cycle sound.
MetSoloWinScreen(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
One navigation command delivered to a screen.
Definition metscreen.h:46