wavelength 1.0.0
Loading...
Searching...
No Matches
selremixdownloadscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
5#include "met/freqscreen.h"
8#include "script/dataarray.h"
10#include "ui/uiscreen.h"
11
20public:
28 explicit SelRemixDownloadScreen(DataArray *pData) : FreqScreen(pData) {
29 }
30
38 }
39
48 static UIScreen *New(DataArray *pData) {
49 return new SelRemixDownloadScreen(pData);
50 }
51
60 bool DispatchPriv(Message *pMsg) override;
61
70 void Enter(UIScreen *pPrevScreen, float fTime) override;
71
73 void SetRemixes(const std::list<NetRepoRemix> &remixes) {
74 mRemixes = remixes;
75 }
76
77private:
88 bool HandleSelect(UIComponentSelectMsg *pMsg);
89
100 bool HandleJoypad(JoypadInputMsg *pMsg);
101
102 std::list<NetRepoRemix> mRemixes;
103
104 int mShowNote; // Whether the list shows the note rather than the band picture.
105};
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
SelRemixDownloadScreen(DataArray *pData)
Construct the screen from its script description, with no remixes.
Definition selremixdownloadscreen.h:28
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 with their notes, and select the first.
~SelRemixDownloadScreen() override
Destroy the screen.
Definition selremixdownloadscreen.h:37
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition selremixdownloadscreen.h:48
void SetRemixes(const std::list< NetRepoRemix > &remixes)
Definition selremixdownloadscreen.h:73
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.