wavelength 1.0.0
Loading...
Searching...
No Matches
savesettingsscreen.h
Go to the documentation of this file.
1#pragma once
2
5#include "script/dataarray.h"
6#include "ui/uiscreen.h"
8
18public:
25 ~SaveSettingsScreen() override = default;
26
37#ifdef VIDEO_STANDARD_PAL
38 explicit SaveSettingsScreen(DataArray *pData) : OverwriteSaveScreen(pData) {
40 mIsCancel = 1;
41 pData->FindBool("isCancel", &mIsCancel, false);
42 }
43#else
46 }
47#endif
48
57 static UIScreen *New(DataArray *pData) {
58 return new SaveSettingsScreen(pData);
59 }
60
68 const char *Title() override {
69 return "";
70 }
71
80 bool DispatchPriv(Message *pMsg) override;
81
90 void OnSettingsSaved(int nStatus, int nNeeded) override;
91
92private:
101 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
102
103#ifdef VIDEO_STANDARD_PAL
104 int mIsCancel; // Non-zero when a failure also offers to continue, `isCancel`.
105#endif
106};
Reference-counted array of script data nodes.
Definition dataarray.h:20
bool FindBool(const char *pszName, int *pnValue, bool bFail) const
Find the truth value that follows a tag.
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
int mOverwriteStatus
Definition overwritesavescreen.h:28
OverwriteSaveScreen(DataArray *pData)
Construct the screen from its script description.
Definition overwritesavescreen.h:19
void OnSettingsSaved(int nStatus, int nNeeded) override
Mark the options saved and go to the done screen, or open the dialog of the failure.
~SaveSettingsScreen() override=default
Destroy the object.
bool DispatchPriv(Message *pMsg) override
Route the end of the entry to HandleTransitionComplete().
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition savesettingsscreen.h:57
const char * Title() override
Report the empty title of the screen.
Definition savesettingsscreen.h:68
SaveSettingsScreen(DataArray *pData)
Construct the screen from its script description, replacing saved settings.
Definition savesettingsscreen.h:44
One front-end screen, a set of panels shown together with one panel holding the focus.
Definition uiscreen.h:35
Message a screen sends itself once its panels have finished their entry animations.
Definition uitransitioncompletemsg.h:23