wavelength 1.0.0
Loading...
Searching...
No Matches
netmainlaunchpadslist.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
18public:
27 NetMainLaunchpadsList(DataArray *pData, const char *pszPanel) : FreqList(pData, pszPanel) {
28 }
29
37 }
38
48 void UpdateRow(int nRow, int nItem) override;
49
56 void UpdateCursor() override;
57
68 bool HandleJoypad(JoypadInputMsg *pMsg) override;
69
81 static UIComponent *New(DataArray *pData, const char *pszPanel) {
82 return new NetMainLaunchpadsList(pData, pszPanel);
83 }
84
95 void SetLaunchpads(std::list<NetLaunchpadInfo> *pLaunchpads, int nSelected);
96
97protected:
98 std::list<NetLaunchpadInfo> mLaunchpads; // The launchpads of the list.
99};
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
std::list< NetLaunchpadInfo > mLaunchpads
Definition netmainlaunchpadslist.h:98
~NetMainLaunchpadsList() override
Destroy the list.
Definition netmainlaunchpadslist.h:36
static UIComponent * New(DataArray *pData, const char *pszPanel)
Create a list from its script description.
Definition netmainlaunchpadslist.h:81
bool HandleJoypad(JoypadInputMsg *pMsg) override
Choose the selected launchpad for NetJoinLPadScreen with the cross button, then handle the button as ...
void UpdateRow(int nRow, int nItem) override
Show the status, the mode, the difficulty, the connection, the power-ups, and the artist of a launchp...
NetMainLaunchpadsList(DataArray *pData, const char *pszPanel)
Construct a list from its script description.
Definition netmainlaunchpadslist.h:27
void UpdateCursor() override
Move the cursor, show the selected launchpad on the list's panel, and request its players.
void SetLaunchpads(std::list< NetLaunchpadInfo > *pLaunchpads, int nSelected)
Replace the launchpads and select one.
UIComponent(DataArray *pData)
Construct a showing component in the normal state.
Definition uicomponent.h:37