wavelength 1.0.0
Loading...
Searching...
No Matches
setupremixsavescreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/keyboarduser.h"
6#include "os/string.h"
7#include "script/dataarray.h"
11
23public:
30 ~SetupRemixSaveScreen() override = default;
31
40
51 static UIScreen *New(DataArray *pData) {
52 return new SetupRemixSaveScreen(pData);
53 }
54
63 bool DispatchPriv(Message *pMsg) override;
64
76 void Enter(UIScreen *pPrevScreen, float fTime) override;
77
85 void Proceed() override;
86
95 int ReceiveKeyboardText(const char *pszText) override;
96
107
117
127
137
138protected:
139 int mReserved74[3]; // +0x74, not yet recovered.
140
141 const char *mPanel;
142
144
146};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
Mix-in for a screen that receives the text the player types on the front-end keyboard.
Definition keyboarduser.h:9
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
NeedsDialogScreen(DataArray *pData)
Construct the screen from its script description.
Definition needsdialogscreen.h:21
int ReceiveKeyboardText(const char *pszText) override
Store the text typed on the keyboard for the next entry.
~SetupRemixSaveScreen() override=default
Destroy the object.
bool HandleTextEntryComplete(UITextEntryCompleteMsg *pMsg)
Save the remix when a name was typed into the entry.
const char * mPanel
Definition setupremixsavescreen.h:141
SetupRemixSaveScreen(DataArray *pData)
Construct the screen from its script description, for the first player.
bool HandleTextEntryInvalid(UITextEntryInvalidMsg *pMsg)
Play the refusal sound for a character the name entry refused.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition setupremixsavescreen.h:51
bool HandleJoypad(JoypadInputMsg *pMsg)
Handle the buttons of the screen's player while the name has the focus.
String mTypedTitle
Definition setupremixsavescreen.h:145
bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg)
Show the panels again when the discard question closes.
void Proceed() override
Check the name, and show the error of an empty name or of spaces around it, or else save the remix un...
void Enter(UIScreen *pPrevScreen, float fTime) override
Start the entry and show the details of the remix of the game database.
int mReserved74[3]
Definition setupremixsavescreen.h:139
int mPlayer
Definition setupremixsavescreen.h:143
bool DispatchPriv(Message *pMsg) override
Route the messages of the screen, and pass on every other message.
Growable text buffer that is also a PrnStream.
Definition string.h:19
UIScreen(DataArray *pData)
Construct a screen from its script description.
Message a text entry sends when the player confirms the text.
Definition uitextentrycompletemsg.h:25
Message a text entry sends when it refuses a typed character.
Definition uitextentryinvalidmsg.h:25
Message a screen sends itself once its panels have finished their entry animations.
Definition uitransitioncompletemsg.h:23