wavelength 1.0.0
Loading...
Searching...
No Matches
netsorteddatapanel.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
5#include "met/songpicpanel.h"
8#include "script/dataarray.h"
9#include "ui/uipanel.h"
10
18public:
20 static constexpr int kNumPlayerRows = 4;
21
30 NetSortedDataPanel(DataArray *pData, const char *pszDir);
31
39 }
40
50 static UIPanel *New(DataArray *pData, const char *pszDir) {
51 return new NetSortedDataPanel(pData, pszDir);
52 }
53
63
73 void SetPlayers(std::list<LobbyPlayer> *pPlayers, int nLaunchpad);
74
85
92 void Reset();
93
94private:
95 int mLaunchpad;
96};
Reference-counted array of script data nodes.
Definition dataarray.h:20
void ShowLaunchpad(NetLaunchpadInfo *pLaunchpad)
Show the genre and the band picture of a launchpad's song, or nothing for an empty entry.
static constexpr int kNumPlayerRows
The number of player rows.
Definition netsorteddatapanel.h:20
NetSortedDataPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
void Reset()
Hide the players, the genre, and the picture.
void HidePlayers()
Hide the player rows.
~NetSortedDataPanel() override
Destroy the panel.
Definition netsorteddatapanel.h:38
void SetPlayers(std::list< LobbyPlayer > *pPlayers, int nLaunchpad)
Show the players of the shown launchpad, or request them again when the list belongs to another launc...
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition netsorteddatapanel.h:50
SongPicPanel(DataArray *pData, const char *pszDir)
Construct a panel from its script description, with no picture.
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.
The description of one online session that the lobby lists.
Definition netlaunchpadinfo.h:12