resonance 1.0.1
Loading...
Searching...
No Matches
metremixloadscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
6#include "met/metscreen.h"
7
8class MetButtonList;
9class ScrollingList;
10struct MetRemixRecord;
11
12namespace Rnd {
13class Font;
14}
15
32public:
45 MetRemixLoadScreen(MetRenderer *pRenderer, int nPriority);
46
54
64 static MetRemixLoadScreen *New(MetRenderer *pRenderer, int nPriority);
65
80 virtual void EnterAndShow();
81
96 virtual void HandleCommand(const MetScreenCommand *pCommand);
97
109 virtual void PlaySlideSound(int nSelector);
110
120 virtual void PlayHighSound(int nSelector);
121
131 virtual void OnEnterFinished();
132
149 virtual void OnExitFinished();
150
161 virtual void ResolveContainerViews();
162
178 virtual int ProvideText(int nItem, int nColumn, Rnd::Text *pText, int nContext);
179
191 virtual int ProvideMesh(int nItem, int nColumn, Rnd::Mesh *pMesh, int nContext);
192
193private:
203 void ShowRowOnDataScreen(unsigned nIndex);
204
215 void OnButtonRingMoved();
216
217 // The chosen catalogue, an entry of MetRemixManager::mRemixes. +0x90
218 std::vector<MetRemixRecord> *mRemixes;
219 // Built by the first EnterAndShow(), and deleted and then cleared by the destructor. +0x94
220 ScrollingList *mList;
221 int mReserved98; // +0x98, not read or written by any routine of this class
222 int mReserved9c; // +0x9c, not read or written by any routine of this class
223 // The font a row draws in when its record was made on this disc, and the font every other row
224 // draws in. Slot 38 resolves both.
225 Rnd::Font *mThisDiscFont;
226 Rnd::Font *mOtherFont;
227 // The two catalogue buttons, `mcrl_SAVED.but` and `mcrl_FACTORY.but`.
228 MetButtonList *mButtons;
229};
Mix-in for an object that supplies the rows of a scrolling list to the screen that draws it.
Definition listdataprovider.h:30
Ring of front-end buttons with one of them selected.
Definition metbuttonlist.h:34
static MetRemixLoadScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual int ProvideText(int nItem, int nColumn, Rnd::Text *pText, int nContext)
Show the name of one row of mRemixes, in mThisDiscFont when the row's albumNumber matches GetAlbumJuk...
virtual void PlayHighSound(int nSelector)
Play the emphasised-selection sound only while the catalogue has rows.
virtual void ResolveContainerViews()
Resolve the two buttons and the two row fonts.
virtual void HandleCommand(const MetScreenCommand *pCommand)
Act on a navigation command.
virtual void EnterAndShow()
Choose the catalogue, set the title, build or show the list, then enter.
virtual void OnEnterFinished()
Show the first row on the data screen and the load options on the help screen.
MetRemixLoadScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual ~MetRemixLoadScreen()
Delete the list and the button list.
virtual int ProvideMesh(int nItem, int nColumn, Rnd::Mesh *pMesh, int nContext)
Leave the cell as it is.
virtual void OnExitFinished()
Act on the command once the exit has finished.
virtual void PlaySlideSound(int nSelector)
Play the slide sound only while the catalogue has rows.
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.
Glyph atlas, either a host font description or a grid of cells inside a material texture.
Definition font.h:59
Indexed triangle mesh with one material.
Definition mesh.h:46
Run of text drawn as a quad per glyph.
Definition text.h:57
Scrolling list of rows driven by a ListDataProvider.
Definition scrollinglist.h:45
The rendering engine.
Definition animhelper.h:3
One remix in the catalogue, with the appearances of the players who recorded it.
Definition metremixrecord.h:36
One navigation command delivered to a screen.
Definition metscreen.h:46