wavelength 1.0.0
Loading...
Searching...
No Matches
netloginscreen.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"
9#include "ui/uiscreen.h"
11
19public:
27 explicit NetLoginScreen(DataArray *pData);
28
35 ~NetLoginScreen() override {
36 }
37
46 static UIScreen *New(DataArray *pData) {
47 return new NetLoginScreen(pData);
48 }
49
58 bool DispatchPriv(Message *pMsg) override;
59
68 void Enter(UIScreen *pPrevScreen, float fTime) override;
69
78 int ReceiveKeyboardText(const char *pszText) override;
79
80private:
89 void Login();
90
99 void OpenKeyboard();
100
113 bool HandleJoypad(JoypadInputMsg *pMsg);
114
125 bool HandleFocusChange(UIComponentFocusChangeMsg *pMsg);
126
137 bool HandleTextEntryComplete(UITextEntryCompleteMsg *pMsg);
138
139 String mTypedPassword;
140};
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
int ReceiveKeyboardText(const char *pszText) override
Take the password the keyboard typed.
bool DispatchPriv(Message *pMsg) override
Route the controller, the end of the entry, and the focus messages.
NetLoginScreen(DataArray *pData)
Construct a screen with no typed password.
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter, and fill the name and the password from the profile or from the keyboard.
static UIScreen * New(DataArray *pData)
Produce a screen on the heap.
Definition netloginscreen.h:46
~NetLoginScreen() override
Release the screen.
Definition netloginscreen.h:35
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
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