wavelength 1.0.0
Loading...
Searching...
No Matches
netsortedlaunchpadspanel.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqpanel.h"
7#include "os/string.h"
8#include "rnd/rndtext.h"
9#include "script/dataarray.h"
11#include "ui/uipanel.h"
12
20public:
28
37 NetSortedLaunchpadsPanel(DataArray *pData, const char *pszDir);
38
46 }
47
57 static UIPanel *New(DataArray *pData, const char *pszDir) {
58 return new NetSortedLaunchpadsPanel(pData, pszDir);
59 }
60
69 bool DispatchPriv(Message *pMsg) override;
70
79 void Enter(bool bForce, float fTime) override;
80
90 void SetSearch(const char *pszArena, int nRuleSet, int nSkillLevel);
91
102 void Request(int nPage);
103
104private:
115 bool HandleJoypad(JoypadInputMsg *pMsg);
116
127 bool HandleLobbyLaunchpads(LobbyLaunchpadsMsg *pMsg);
128
139 bool HandleSelect(UIComponentSelectMsg *pMsg);
140
141 String mArena;
142 int mRuleSet;
143 int mSkillLevel;
144 int mHasPrevious;
145 int mPage;
146 RndText *mNoneText;
147};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqPanel(DataArray *pData, const char *pszDir)
Construct a panel from its script description.
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
List of launchpads, the result of NetLobby::RequestLaunchpads().
Definition lobbylaunchpadsmsg.h:16
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
NetFlashUpdate()
Construct a notice that is not flashing.
~NetSortedLaunchpadsPanel() override
Destroy the panel.
Definition netsortedlaunchpadspanel.h:45
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition netsortedlaunchpadspanel.h:57
void Enter(bool bForce, float fTime) override
Enter, find the objects of the flash, and request the start of the list.
Page
The pages Request() takes, as NetLobby::RequestLaunchpads() takes them.
Definition netsortedlaunchpadspanel.h:22
@ kPageNext
Definition netsortedlaunchpadspanel.h:24
@ kPageRefresh
Definition netsortedlaunchpadspanel.h:25
@ kPageFirst
Definition netsortedlaunchpadspanel.h:23
@ kPagePrevious
Definition netsortedlaunchpadspanel.h:26
NetSortedLaunchpadsPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description, with an empty query.
void Request(int nPage)
Clear the data panel and request a page, unless the previous page is requested and no launchpads prec...
void SetSearch(const char *pszArena, int nRuleSet, int nSkillLevel)
Set the search whose sessions the panel lists.
bool DispatchPriv(Message *pMsg) override
Route the list of launchpads, the choice, and the controller messages.
Text drawn with a bitmap font as a mesh of one quad per character.
Definition rndtext.h:27
Growable text buffer that is also a PrnStream.
Definition string.h:19
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.