wavelength 1.0.0
Loading...
Searching...
No Matches
msgerrorscreen.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 MsgErrorScreen(DataArray *pData) : ErrorScreen(pData) {
25 }
26
33 ~MsgErrorScreen() override {
34 }
35
44 static UIScreen *New(DataArray *pData) {
45 return new MsgErrorScreen(pData);
46 }
47
56 void Enter(UIScreen *pPrevScreen, float fTime) override;
57
59 void SetMessage(const char *pszMessage) {
60 mMessage = pszMessage;
61 }
62
63private:
64 String mMessage;
65};
Reference-counted array of script data nodes.
Definition dataarray.h:20
ErrorScreen(DataArray *pData)
Construct the screen from its script description.
~MsgErrorScreen() override
Destroy the screen.
Definition msgerrorscreen.h:33
MsgErrorScreen(DataArray *pData)
Construct the screen from its script description, with no message.
Definition msgerrorscreen.h:24
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition msgerrorscreen.h:44
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter and show the localised message with the name of the slot in the dialog.
void SetMessage(const char *pszMessage)
Definition msgerrorscreen.h:59
Growable text buffer that is also a PrnStream.
Definition string.h:19
UIScreen(DataArray *pData)
Construct a screen from its script description.