resonance 1.0.1
Loading...
Searching...
No Matches
metpausebasescreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
6
7namespace Rnd {
8class Text;
9} // namespace Rnd
10
34public:
47 int nPriority,
48 const HxStr &name,
49 const HxStr &directory,
50 const HxStr &file);
51
57
71 int nPriority,
72 const HxStr &name,
73 const HxStr &directory,
74 const HxStr &file);
75
84 virtual void EnterAndShow();
85
98 virtual void OnMsgScreenDismissed(const HxStr &name, int nChoice);
99
111 virtual void HandleCommand(const MetScreenCommand *pCommand);
112
118 virtual void PlaySlideSound(int nSelector);
119
125 virtual void PlayLeaveSound(int nSelector);
126
132 virtual void PlayHighSound(int nSelector);
133
139 virtual void PlayCycleLeftSound(int nSelector);
140
146 virtual void PlayCycleRightSound(int nSelector);
147
159 virtual void OnExitFinished();
160
170 virtual void PlayPauseSound(int nSelector);
171
172protected:
182
183 int mExitAction; // +0x8c, an ExitAction
184 std::vector<HxStr> mOptionLabels; // The option labels a derived slot 5 fills.
185 HxStr mReturnPanel; // The panel a dismissed confirmation reactivates.
186 std::vector<Rnd::Text *> mOptionTexts; // The option texts a derived slot 38 resolves.
187};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
virtual void OnExitFinished()
Act on the recorded exit action once the exit finishes.
virtual void PlayLeaveSound(int nSelector)
ExitAction
The exit action HandleCommand() recorded.
Definition metpausebasescreen.h:174
@ kExitRestart
Definition metpausebasescreen.h:178
@ kExitController
Definition metpausebasescreen.h:180
@ kExitGameOptions
Definition metpausebasescreen.h:179
@ kExitNone
Definition metpausebasescreen.h:175
@ kExitResume
Definition metpausebasescreen.h:176
@ kExitQuit
Definition metpausebasescreen.h:177
virtual void PlayCycleRightSound(int nSelector)
int mExitAction
Definition metpausebasescreen.h:183
static MetPauseBaseScreen * New(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Build the screen on the heap.
virtual void PlayHighSound(int nSelector)
std::vector< HxStr > mOptionLabels
Definition metpausebasescreen.h:184
virtual void HandleCommand(const MetScreenCommand *pCommand)
Record the exit action for a command and begin the exit.
virtual void PlaySlideSound(int nSelector)
virtual ~MetPauseBaseScreen()
virtual void OnMsgScreenDismissed(const HxStr &name, int nChoice)
Act on the quit or restart confirmation.
virtual void PlayPauseSound(int nSelector)
Play the multiplayer bank's slide sound.
virtual void PlayCycleLeftSound(int nSelector)
std::vector< Rnd::Text * > mOptionTexts
Definition metpausebasescreen.h:186
MetPauseBaseScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct the screen with an empty option list.
HxStr mReturnPanel
Definition metpausebasescreen.h:185
virtual void EnterAndShow()
Copy each label in mOptionLabels to the option text at the same index, then enter.
Front-end renderer that owns the screen stack and drives every MetScreen.
Definition metrenderer.h:68
MetScreenMultiSoundBank(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct a screen that uses the multiplayer sound bank.
Run of text drawn as a quad per glyph.
Definition text.h:57
The rendering engine.
Definition animhelper.h:3
One navigation command delivered to a screen.
Definition metscreen.h:46