wavelength 1.0.0
Loading...
Searching...
No Matches
netmainscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
7#include "os/string.h"
8#include "script/dataarray.h"
12#include "ui/uiscreen.h"
14
23class NetMainScreen : public FreqScreen {
24public:
32 explicit NetMainScreen(DataArray *pData);
33
40 ~NetMainScreen() override {
41 }
42
51 static UIScreen *New(DataArray *pData) {
52 return new NetMainScreen(pData);
53 }
54
63 bool DispatchPriv(Message *pMsg) override;
64
74 void Enter(UIScreen *pPrevScreen, float fTime) override;
75
84 void Exit(UIScreen *pNextScreen, float fTime) override;
85
93 const char *Title() override;
94
95private:
106 bool HandleFocusChange(UIComponentFocusChangeMsg *pMsg);
107
118 bool HandleSelect(UIComponentSelectMsg *pMsg);
119
130 bool HandleSelectStart(UIComponentSelectStartMsg *pMsg);
131
143 bool HandleJoypad(JoypadInputMsg *pMsg);
144
155 bool HandleKeyboardKey(KeyboardKeyMsg *pMsg);
156
167 bool HandleTextEntryComplete(UITextEntryCompleteMsg *pMsg);
168
180 bool HandleLobbyPlayers(LobbyPlayersMsg *pMsg);
181
182 String mL1Panel; // The description's `L1_panel`, the panel the L1 button refreshes.
183};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
Message the keyboard poll sends when a key of a USB keyboard is pressed.
Definition keyboardkeymsg.h:23
Message that delivers the players of an online session the lobby lists.
Definition lobbyplayersmsg.h:23
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
bool DispatchPriv(Message *pMsg) override
Route the tabs, the chat, the controller, and the players of a launchpad to their handlers.
const char * Title() override
Report the title, the localised fn_main_TITLE with the name of the chat room.
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter, focus join when the panel with the focus has no focused component, and show the help of the fo...
void Exit(UIScreen *pNextScreen, float fTime) override
Exit, and give the focus back to fn_main unless the next screen is of the class.
~NetMainScreen() override
Destroy the screen.
Definition netmainscreen.h:40
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition netmainscreen.h:51
NetMainScreen(DataArray *pData)
Construct the screen from its script description.
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
Message a component sends when the player presses the button that chooses it.
Definition uicomponentselectstartmsg.h:27
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