wavelength 1.0.0
Loading...
Searching...
No Matches
netcreateuserscreen.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"
10#include "ui/uiscreen.h"
13
22public:
31
39 }
40
49 static UIScreen *New(DataArray *pData) {
50 return new NetCreateUserScreen(pData);
51 }
52
61 bool DispatchPriv(Message *pMsg) override;
62
71 void Enter(UIScreen *pPrevScreen, float fTime) override;
72
81 int ReceiveKeyboardText(const char *pszText) override;
82
83private:
93 void Submit();
94
104 void OpenKeyboard(const char *pszEntry);
105
117 bool HandleJoypad(JoypadInputMsg *pMsg);
118
129 bool HandleFocusChange(UIComponentFocusChangeMsg *pMsg);
130
141 bool HandleSelect(UIComponentSelectMsg *pMsg);
142
153 bool HandleTextEntryComplete(UITextEntryCompleteMsg *pMsg);
154
165 bool HandleTextEntryInvalid(UITextEntryInvalidMsg *pMsg);
166
167 String mKeyboardText;
168 String mKeyboardEntry;
169 String mUserName;
170 String mPassword;
171 String mConfirm;
172};
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
static UIScreen * New(DataArray *pData)
Produce a screen on the heap.
Definition netcreateuserscreen.h:49
NetCreateUserScreen(DataArray *pData)
Construct a screen with empty entries.
bool DispatchPriv(Message *pMsg) override
Route the controller, focus, choice, and text entry messages.
int ReceiveKeyboardText(const char *pszText) override
Take the text the keyboard typed.
~NetCreateUserScreen() override
Release the screen.
Definition netcreateuserscreen.h:38
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter, fill the entries back from before the keyboard, and save the password by default.
NetPasswordScreen(DataArray *pData)
Construct a screen that saves the password.
Growable text buffer that is also a PrnStream.
Definition string.h:19
Message a panel sends before it moves its focus to another component.
Definition uicomponentfocuschangemsg.h:26
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
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