resonance 1.0.1
Loading...
Searching...
No Matches
metremixdatascreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "met/metscreen.h"
7
8struct MetRemixRecord;
9namespace Rnd {
10class Mat;
11class Mesh;
12class Text;
13} // namespace Rnd
14
27public:
40 MetRemixDataScreen(MetRenderer *pRenderer, int nPriority);
41
47
57 static MetRemixDataScreen *New(MetRenderer *pRenderer, int nPriority);
58
74 void ShowRecord(MetRemixRecord *pRecord);
75
86 void SetRecordShowing(int nShowing);
87
96 virtual void EnterAndShow();
97
107 virtual void UpdateIdle(float flTime);
108
117 virtual void OnExitFinished();
118
129 virtual void ResolveContainerViews();
130
131private:
132 std::vector<Rnd::Text *> mPlayerNames; // The player names, `mcrl_name_0N.txt`.
133 std::vector<Rnd::Mat *> mPlayerPictures; // The persona pictures, `mcrl_playerN.mat`.
134 std::vector<Rnd::Mesh *> mPlayerMeshes; // The player meshes, `mcrl_freq_0N.mesh`.
135 Rnd::Text *mSongTitleText; // `mcrl_songtitle.txt`
136 Rnd::Text *mDateText; // `mcrl_dob.txt`
137 Rnd::Mat *mLabelMaterial; // `mcrl_photo.mat`, the material for the picture
138 Rnd::Mat *mLogoMaterial; // `mcrl_logo.mat`, the material for the logo
139 Rnd::Text *mUnavailableText; // `mcrl_remixunavail.txt`
140 Rnd::Mesh *mLabelMesh; // `mcrl_label.mesh`, shown with the picture
141 Rnd::Mesh *mLogoMesh; // `mcrl_logo.mesh`, shown with the logo
142 TexturePairRecord mLogoTextures;
143 TexturePairRecord mLabelTextures;
144};
virtual void ResolveContainerViews()
Resolve the container views, the seven single views, and the four player rows.
MetRemixDataScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual void OnExitFinished()
Hide the unavailable notice.
virtual ~MetRemixDataScreen()
virtual void EnterAndShow()
Hide the panel and the unavailable notice, invalidate both textures, then enter.
void ShowRecord(MetRemixRecord *pRecord)
Fill the panel from one remix record.
virtual void UpdateIdle(float flTime)
Swap in each texture whose load has finished, showing its mesh only while it has one.
static MetRemixDataScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
void SetRecordShowing(int nShowing)
Show or hide the song name, the date, the two meshes, and the four player 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.
Surface description a Rnd::Mesh draws with.
Definition mat.h:36
Indexed triangle mesh with one material.
Definition mesh.h:46
Run of text drawn as a quad per glyph.
Definition text.h:57
Pair of textures a screen alternates between, one shown while the other loads.
Definition texturepairrecord.h:30
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