wavelength 1.0.0
Loading...
Searching...
No Matches
listremixesscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "game/remixinfo.h"
7#include "met/errorscreen.h"
8#include "script/dataarray.h"
9#include "ui/uiscreen.h"
11
22public:
30#ifdef VIDEO_STANDARD_PAL
31 explicit ListRemixesScreen(DataArray *pData) : ErrorScreen(pData), mRelist(0) {
32 }
33#else
34 explicit ListRemixesScreen(DataArray *pData) : ErrorScreen(pData) {
35 }
36#endif
37
44 ~ListRemixesScreen() override {
45 }
46
55 static UIScreen *New(DataArray *pData) {
56 return new ListRemixesScreen(pData);
57 }
58
59#ifdef VIDEO_STANDARD_PAL
66 void Poll(float fTime) override;
67#endif
68
76 const char *Title() override {
77 return "";
78 }
79
88 bool DispatchPriv(Message *pMsg) override;
89
98 void OnRemixesListed(int nStatus, std::vector<RemixInfo> *pInfos) override;
99
100private:
109 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
110
111#ifdef VIDEO_STANDARD_PAL
112 int mRelist; // Whether the next poll lists the remixes again.
113#endif
114};
Reference-counted array of script data nodes.
Definition dataarray.h:20
ErrorScreen(DataArray *pData)
Construct the screen from its script description.
ListRemixesScreen(DataArray *pData)
Construct the screen from its script description.
Definition listremixesscreen.h:34
void OnRemixesListed(int nStatus, std::vector< RemixInfo > *pInfos) override
Hand the remixes to the done screen and go on, or open the dialog of the failure.
~ListRemixesScreen() override
Destroy the screen.
Definition listremixesscreen.h:44
const char * Title() override
Report the empty title of the screen.
Definition listremixesscreen.h:76
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition listremixesscreen.h:55
bool DispatchPriv(Message *pMsg) override
Route the end of the entry to HandleTransitionComplete().
Receiver of the outcome of the memory card work MCManager runs.
Definition memcarduser.h:19
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
virtual void Poll(float fTime)
Advance the panels to a time, and finish the exit or the entry once their animations stop.
UIScreen(DataArray *pData)
Construct a screen from its script description.
Message a screen sends itself once its panels have finished their entry animations.
Definition uitransitioncompletemsg.h:23