wavelength 1.0.0
Loading...
Searching...
No Matches
netmainlobbiespanel.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/netmainpanel.h"
6#include "script/dataarray.h"
8#include "ui/uipanel.h"
9
18public:
27 NetMainLobbiesPanel(DataArray *pData, const char *pszDir) : NetMainPanel(pData, pszDir) {
28 }
29
42 static UIPanel *New(DataArray *pData, const char *pszDir) {
43 return new NetMainLobbiesPanel(pData, pszDir);
44 }
45
53 }
54
63 bool DispatchPriv(Message *pMsg) override;
64
71 void Focus() override;
72
79 void Unfocus() override;
80
87 void RequestUpdate() override;
88
89private:
100 bool HandleChatrooms(LobbyChatroomsMsg *pMsg);
101
112 bool HandleSelect(UIComponentSelectMsg *pMsg);
113
125 bool HandleJoypad(JoypadInputMsg *pMsg);
126};
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
Message that delivers the chat rooms of the lobby.
Definition lobbychatroomsmsg.h:16
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
void Unfocus() override
Lose the focus, dim the cursor of the list, and show the help of the panel.
~NetMainLobbiesPanel() override
Destroy the panel.
Definition netmainlobbiespanel.h:52
bool DispatchPriv(Message *pMsg) override
Route the chat rooms, the choice, and the controller to their handlers.
void Focus() override
Take the focus, select the cursor of the list, and show the help of the focused panel.
void RequestUpdate() override
Request the chat rooms of the lobby.
NetMainLobbiesPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
Definition netmainlobbiespanel.h:27
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition netmainlobbiespanel.h:42
NetMainPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
Group of components drawn from one .rnd file, which a screen shows.
Definition uipanel.h:35