wavelength 1.0.0
Loading...
Searching...
No Matches
transitionerrorscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
4#include "os/string.h"
5#include "script/dataarray.h"
6#include "ui/uiscreen.h"
7
15public:
23 explicit TransitionErrorScreen(DataArray *pData) : FreqScreen(pData) {
24 }
25
33 }
34
43 static UIScreen *New(DataArray *pData) {
44 return new TransitionErrorScreen(pData);
45 }
46
55 void Enter(UIScreen *pPrevScreen, float fTime) override;
56
58 void SetMessage(const char *pszMessage) {
59 mMessage = pszMessage;
60 }
61
62private:
63 String mMessage;
64};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Growable text buffer that is also a PrnStream.
Definition string.h:19
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter and show the message in the dialog.
TransitionErrorScreen(DataArray *pData)
Construct the screen from its script description, with no message.
Definition transitionerrorscreen.h:23
~TransitionErrorScreen() override
Destroy the screen.
Definition transitionerrorscreen.h:32
void SetMessage(const char *pszMessage)
Definition transitionerrorscreen.h:58
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition transitionerrorscreen.h:43
UIScreen(DataArray *pData)
Construct a screen from its script description.