resonance 1.0.1
Loading...
Searching...
No Matches
metmainscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/metscreen.h"
4
5class MetButtonList;
6
26class MetMainScreen : public MetScreen {
27public:
39 MetMainScreen(MetRenderer *pRenderer, int nPriority);
40
47 virtual ~MetMainScreen();
48
58 static MetMainScreen *New(MetRenderer *pRenderer, int nPriority);
59
71 virtual void EnterAndShow();
72
82 virtual void HandleCommand(const MetScreenCommand *pCommand);
83
93 virtual void PlayCycleLeftSound(int nSelector);
94
104 virtual void PlayCycleRightSound(int nSelector);
105
115 virtual void OnRepeatingSoundFinished(Rnd::Button *pButton);
116
127 virtual void OnEnterFinished();
128
138 virtual void OnExitFinished();
139
149 virtual void ResolveContainerViews();
150
151private:
161 void EnterMenu();
162
172 void OpenSelectedButton();
173
174 MetButtonList *mButtonList; // +0x8c
175};
Ring of front-end buttons with one of them selected.
Definition metbuttonlist.h:34
virtual void ResolveContainerViews()
Resolve the base views and add the four buttons with their labels and help texts.
virtual void PlayCycleLeftSound(int nSelector)
Play nothing.
virtual void EnterAndShow()
Enter the menu, first saving the global settings when a configuration screen changed them.
virtual void PlayCycleRightSound(int nSelector)
Play nothing.
virtual void OnExitFinished()
Bring up the next screen once this one has exited.
virtual void OnRepeatingSoundFinished(Rnd::Button *pButton)
Exit forwards once the chosen button's alternation has finished.
virtual void OnEnterFinished()
Select the starting button, return the game to no mode, and post the help text.
virtual ~MetMainScreen()
Delete the button list.
static MetMainScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
MetMainScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual void HandleCommand(const MetScreenCommand *pCommand)
Step the selection, start the chosen button's alternation, or back out to the logo.
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.
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