resonance 1.0.1
Loading...
Searching...
No Matches
metfreqmakerdirectionsscreen.h
Go to the documentation of this file.
1#pragma once
2
4#include "met/metscreen.h"
5
6class ScrollingList;
7namespace Rnd {
8class View;
9}
10
32public:
45 MetFreqMakerDirectionsScreen(MetRenderer *pRenderer, int nPriority);
46
54
66 static MetFreqMakerDirectionsScreen *New(MetRenderer *pRenderer, int nPriority);
67
76 virtual void EnterAndShow();
77
87 virtual int PollContainerLoad();
88
98 virtual void PlayCycleLeftSound(int nSelector);
99
109 virtual void PlayCycleRightSound(int nSelector);
110
121 virtual void OnRepeatingSoundFinished(Rnd::Button *pButton);
122
131 virtual void OnExitFinished();
132
143 virtual void ResolveContainerViews();
144
158 void ShowPage(int nPage);
159
177 virtual int ProvideText(int nItem, int nColumn, Rnd::Text *pText, int nContext);
178
190 virtual int ProvideMesh(int nItem, int nColumn, Rnd::Mesh *pMesh, int nContext);
191
192private:
193#ifdef VIDEO_STANDARD_PAL
201 void LoadPageTexts();
202#endif
203
212 const HxStr &PageCell(int nRow, int nColumn, const HxStr (*pTable)[2]);
213
214 Rnd::View *mRowTemplate; // +0x90, resolved by slot 38
215 ScrollingList *mList; // +0x94, built by slot 38 and never deleted
216 // The directions page ProvideText() shows. The constructor starts it at the blank page. +0x98
217 int mPage;
218};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Mix-in for an object that supplies the rows of a scrolling list to the screen that draws it.
Definition listdataprovider.h:30
virtual int ProvideMesh(int nItem, int nColumn, Rnd::Mesh *pMesh, int nContext)
Leave the cell as it is.
virtual int ProvideText(int nItem, int nColumn, Rnd::Text *pText, int nContext)
Show one cell of the directions page mPage selects.
virtual ~MetFreqMakerDirectionsScreen()
Release the screen.
virtual void OnExitFinished()
Hide the list entries.
virtual void PlayCycleRightSound(int nSelector)
Play nothing.
static MetFreqMakerDirectionsScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void PlayCycleLeftSound(int nSelector)
Play nothing.
virtual void ResolveContainerViews()
Resolve the base views and build the seven-row directions list.
MetFreqMakerDirectionsScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual int PollContainerLoad()
Report the container load finished once the FreQ maker assets are resident as well.
void ShowPage(int nPage)
Show one directions page.
virtual void OnRepeatingSoundFinished(Rnd::Button *pButton)
Make this screen the active panel again, through ActivateNamedPanel() with MetFreqMakerDirectionsScre...
virtual void EnterAndShow()
Show the screen and its list entries.
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
Indexed triangle mesh with one material.
Definition mesh.h:46
Run of text drawn as a quad per glyph.
Definition text.h:57
Root of a loadable scene.
Definition view.h:47
Scrolling list of rows driven by a ListDataProvider.
Definition scrollinglist.h:45
The rendering engine.
Definition animhelper.h:3