wavelength 1.0.0
Loading...
Searching...
No Matches
netsearchscreen.h
Go to the documentation of this file.
1#pragma once
2
4#include "script/dataarray.h"
6#include "ui/uiscreen.h"
7
17public:
24 ~NetSearchScreen() override = default;
25
33 explicit NetSearchScreen(DataArray *pData) : NetParamsScreen(pData) {
34 }
35
44 static UIScreen *New(DataArray *pData) {
45 return new NetSearchScreen(pData);
46 }
47
56 bool DispatchPriv(Message *pMsg) override;
57
66 void Enter(UIScreen *pPrevScreen, float fTime) override;
67
75 void OnModeChanged() override;
76
88 void OnChoiceChanged(int bReset) override;
89
100};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
NetParamsScreen(DataArray *pData)
Construct a screen from the song_panel_name, button_panel_name, and tri_back of its description.
void Enter(UIScreen *pPrevScreen, float fTime) override
List the modes with param_any last, and choose any mode and any skill.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition netsearchscreen.h:44
bool HandleSelect(UIComponentSelectMsg *pMsg)
Search with the choices from search, or move the focus to search from any other component.
void OnModeChanged() override
List the skills of the chosen mode with param_any last, keeping the chosen skill where the lists diff...
bool DispatchPriv(Message *pMsg) override
Route a choice to HandleSelect(), or any other message to NetParamsScreen.
NetSearchScreen(DataArray *pData)
Construct the screen from its script description.
Definition netsearchscreen.h:33
~NetSearchScreen() override=default
Destroy the object.
void OnChoiceChanged(int bReset) override
List search_all and the songs of the chosen mode and skill, keeping the song already selected.
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.