wavelength 1.0.0
Loading...
Searching...
No Matches
remixsongscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "met/freqscreen.h"
6#include "os/string.h"
7#include "script/dataarray.h"
9
19public:
26 ~RemixSongScreen() override = default;
27
35 explicit RemixSongScreen(DataArray *pData);
36
47 static UIScreen *New(DataArray *pData) {
48 return new RemixSongScreen(pData);
49 }
50
59 bool DispatchPriv(Message *pMsg) override;
60
71 void Enter(UIScreen *pPrevScreen, float fTime) override;
72
83
84private:
85 String mSong;
86 std::vector<String> mSongs;
87};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
RemixSongScreen(DataArray *pData)
Construct the screen from its script description, with no songs.
bool DispatchPriv(Message *pMsg) override
Route a chosen song, and pass on every other message.
bool HandleSelect(UIComponentSelectMsg *pMsg)
Set up the song chosen with the cross button, and go on to the remix creation mode or to the tutorial...
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition remixsongscreen.h:47
void Enter(UIScreen *pPrevScreen, float fTime) override
Fill the list with the unlocked songs, and start the entry.
~RemixSongScreen() override=default
Destroy the object.
Growable text buffer that is also a PrnStream.
Definition string.h:19
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.