wavelength 1.0.0
Loading...
Searching...
No Matches
netmainlobbieslist.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
5#include "met/freqlist.h"
8#include "script/dataarray.h"
9
17public:
26 NetMainLobbiesList(DataArray *pData, const char *pszPanel) : FreqList(pData, pszPanel) {
27 }
28
41 static UIComponent *New(DataArray *pData, const char *pszPanel) {
42 return new NetMainLobbiesList(pData, pszPanel);
43 }
44
52 }
53
62 void UpdateRow(int nRow, int nItem) override;
63
73 bool HandleJoypad(JoypadInputMsg *pMsg) override;
74
84 void SetChatrooms(std::list<NetChatroomInfo> *pChatrooms);
85
86private:
87 std::list<NetChatroomInfo> mChatrooms; // The chat rooms of the list.
88};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqList(DataArray *pData, const char *pszPanel)
Construct the list from its script description.
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
void UpdateRow(int nRow, int nItem) override
Show the name and the players of a chat room in a row.
~NetMainLobbiesList() override
Destroy the list.
Definition netmainlobbieslist.h:51
void SetChatrooms(std::list< NetChatroomInfo > *pChatrooms)
Replace the chat rooms and keep the selection.
bool HandleJoypad(JoypadInputMsg *pMsg) override
Choose the selected room for NetSwitchLobbyScreen with the cross button, then handle the button as a ...
static UIComponent * New(DataArray *pData, const char *pszPanel)
Create a list from its script description.
Definition netmainlobbieslist.h:41
NetMainLobbiesList(DataArray *pData, const char *pszPanel)
Construct a list from its script description.
Definition netmainlobbieslist.h:26
UIComponent(DataArray *pData)
Construct a showing component in the normal state.
Definition uicomponent.h:37