wavelength 1.0.0
Loading...
Searching...
No Matches
spaceerrorscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/errorscreen.h"
4#include "os/string.h"
5#include "script/dataarray.h"
6#include "ui/uiscreen.h"
7
16public:
24 explicit SpaceErrorScreen(DataArray *pData) : ErrorScreen(pData) {
25 }
26
33 ~SpaceErrorScreen() override {
34 }
35
44 static UIScreen *New(DataArray *pData) {
45 return new SpaceErrorScreen(pData);
46 }
47
56 void Enter(UIScreen *pPrevScreen, float fTime) override;
57
59 void SetSpace(int nSpace) {
60 mSpace = nSpace;
61 }
62
63#ifdef VIDEO_STANDARD_PAL
65 void SetSaveName(const char *pszSaveName) {
66 mSaveName = pszSaveName;
67 }
68
69#endif
70
71private:
72 int mSpace;
73#ifdef VIDEO_STANDARD_PAL
74 String mSaveName;
75#endif
76};
Reference-counted array of script data nodes.
Definition dataarray.h:20
ErrorScreen(DataArray *pData)
Construct the screen from its script description.
SpaceErrorScreen(DataArray *pData)
Construct the screen from its script description.
Definition spaceerrorscreen.h:24
void SetSpace(int nSpace)
Definition spaceerrorscreen.h:59
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter and show the message with the name of the slot and the space needed in the dialog.
~SpaceErrorScreen() override
Destroy the screen.
Definition spaceerrorscreen.h:33
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition spaceerrorscreen.h:44
UIScreen(DataArray *pData)
Construct a screen from its script description.