wavelength 1.0.0
Loading...
Searching...
No Matches
loadremixscreen.h
Go to the documentation of this file.
1#pragma once
2
4#include "met/errorscreen.h"
5#include "script/dataarray.h"
6#include "ui/uiscreen.h"
8
18class LoadRemixScreen : public ErrorScreen, public MemcardUser {
19public:
27#ifdef VIDEO_STANDARD_PAL
28 explicit LoadRemixScreen(DataArray *pData) : ErrorScreen(pData), mReload(0) {
29 }
30#else
31 explicit LoadRemixScreen(DataArray *pData) : ErrorScreen(pData) {
32 }
33#endif
34
41 ~LoadRemixScreen() override {
42 }
43
52 static UIScreen *New(DataArray *pData) {
53 return new LoadRemixScreen(pData);
54 }
55
56#ifdef VIDEO_STANDARD_PAL
63 void Poll(float fTime) override;
64#endif
65
73 const char *Title() override {
74 return "";
75 }
76
85 bool DispatchPriv(Message *pMsg) override;
86
94 void OnRemixLoaded(int nStatus) override;
95
96private:
105 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
106
107#ifdef VIDEO_STANDARD_PAL
108 int mReload; // Whether the next poll loads the remix again.
109#endif
110};
Reference-counted array of script data nodes.
Definition dataarray.h:20
ErrorScreen(DataArray *pData)
Construct the screen from its script description.
bool DispatchPriv(Message *pMsg) override
Route the end of the entry to HandleTransitionComplete().
void OnRemixLoaded(int nStatus) override
Go to the done screen after a load, or open the dialog of the failure.
LoadRemixScreen(DataArray *pData)
Construct the screen from its script description.
Definition loadremixscreen.h:31
const char * Title() override
Report the empty title of the screen.
Definition loadremixscreen.h:73
~LoadRemixScreen() override
Destroy the screen.
Definition loadremixscreen.h:41
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition loadremixscreen.h:52
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