wavelength 1.0.0
Loading...
Searching...
No Matches
remixselectscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "game/remixinfo.h"
6#include "met/freqscreen.h"
8#include "script/dataarray.h"
10#include "ui/uiscreen.h"
11
22public:
30 explicit RemixSelectScreen(DataArray *pData);
31
38 ~RemixSelectScreen() override {
39 }
40
49 static UIScreen *New(DataArray *pData) {
50 return new RemixSelectScreen(pData);
51 }
52
61 bool DispatchPriv(Message *pMsg) override;
62
74 void Enter(UIScreen *pPrevScreen, float fTime) override;
75
85 virtual void SetRemixes(const std::vector<RemixInfo> &remixes) {
86 mRemixes = remixes;
87 }
88
89protected:
90 std::vector<RemixInfo> mRemixes;
91
92private:
106 int LoadSelectedRemix(bool bPractice);
107
119 bool HandleSelect(UIComponentSelectMsg *pMsg);
120
132 bool HandleJoypad(JoypadInputMsg *pMsg);
133
134 int mGreyReadOnly;
135 int mGreyUnplayable;
136};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
bool DispatchPriv(Message *pMsg) override
Route the choice and the controller to their handlers.
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter, list the remixes, and select the first.
RemixSelectScreen(DataArray *pData)
Construct the screen from its script description, with no remixes.
virtual void SetRemixes(const std::vector< RemixInfo > &remixes)
Replace the remixes the screen lists.
Definition remixselectscreen.h:85
std::vector< RemixInfo > mRemixes
Definition remixselectscreen.h:90
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition remixselectscreen.h:49
~RemixSelectScreen() override
Destroy the screen.
Definition remixselectscreen.h:38
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.