resonance 1.0.1
Loading...
Searching...
No Matches
metmultitipsbasescreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/metscreen.h"
4#include "os/hxstr.h"
5
37public:
43
53 virtual void EnterAndShow();
54
63 virtual void BeginExit();
64
76 virtual void HandleCommand(const MetScreenCommand *pCommand);
77
83 virtual void PlayHighSound(int nSelector);
84
90 virtual void PlayCycleLeftSound(int nSelector);
91
97 virtual void PlayCycleRightSound(int nSelector);
98
107 virtual void OnEnterFinished();
108
118 virtual void OnExitFinished();
119
120protected:
122 enum Exit {
126 };
127
142 int nPriority,
143 const HxStr &name,
144 const HxStr &file,
145 int nPage,
146 const HxStr &previous,
147 const HxStr &next);
148
156 PushNamedScreen(HxStr("MetLeftGizmoScreen"));
157 PushNamedScreen(HxStr("MetLocNumPlayersScreen"));
158 ActivateNamedPanel(HxStr("MetLocNumPlayersScreen"));
159 }
160
161private:
162 HxStr mPreviousScreen; // +0x8c, the previous page
163 HxStr mNextScreen; // +0x94, the next page
164 int mPage; // +0x9c, the page number
165};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
virtual void PlayHighSound(int nSelector)
MetMultiTipsBaseScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &file, int nPage, const HxStr &previous, const HxStr &next)
Construct a tip page.
virtual void OnEnterFinished()
Post the first help prompt.
virtual void EnterAndShow()
Show the numbered title, enter, and select the tips help layout.
void ReturnToPlayerCount()
Return to the player-count screen.
Definition metmultitipsbasescreen.h:155
virtual void HandleCommand(const MetScreenCommand *pCommand)
Leave the page.
virtual void BeginExit()
Exit the title screen and begin the exit.
Exit
The exit a command recorded in MetScreen::mExitChoice.
Definition metmultitipsbasescreen.h:122
@ kExitQuit
Definition metmultitipsbasescreen.h:125
@ kExitPrevious
Definition metmultitipsbasescreen.h:123
@ kExitNext
Definition metmultitipsbasescreen.h:124
virtual void PlayCycleLeftSound(int nSelector)
virtual ~MetMultiTipsBaseScreen()
virtual void PlayCycleRightSound(int nSelector)
virtual void OnExitFinished()
Push the page the recorded choice leads to.
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 ActivateNamedPanel(const HxStr &name)
Make one named screen the renderer's active panel.
virtual void PushNamedScreen(const HxStr &name)
Bring one named screen onto the renderer's screen stack.
One navigation command delivered to a screen.
Definition metscreen.h:46