wavelength 1.0.0
Loading...
Searching...
No Matches
multifreqselectscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "met/freqscreen.h"
7#include "script/dataarray.h"
10
19public:
26 ~MultiFreqSelectScreen() override = default;
27
36
47 static UIScreen *New(DataArray *pData) {
48 return new MultiFreqSelectScreen(pData);
49 }
50
59 bool DispatchPriv(Message *pMsg) override;
60
69 void Enter(UIScreen *pPrevScreen, float fTime) override;
70
81
94
109
117 void CheckDone();
118
119private:
120 int mNumPlayers;
121 std::vector<bool> mConfirmed;
122};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
bool HandleSelect(UIComponentSelectMsg *pMsg)
Pass a choice made with the cross button to the panel of its player, mark the player as done,...
MultiFreqSelectScreen(DataArray *pData)
Construct the screen from its script description, reading num_players.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition multifreqselectscreen.h:47
~MultiFreqSelectScreen() override=default
Destroy the object.
bool DispatchPriv(Message *pMsg) override
Route the choices and the controller buttons, and pass on every other message.
void CheckDone()
Go on to the skill or remix menu once every player has chosen, giving every player without a name the...
bool HandleJoypad(JoypadInputMsg *pMsg)
Handle a button of a player's controller.
void Enter(UIScreen *pPrevScreen, float fTime) override
Start the entry with no player having chosen.
bool HandleSelectStart(UIComponentSelectStartMsg *pMsg)
Pass the start of a choice to the panel of the controller that made it.
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
Message a component sends when the player presses the button that chooses it.
Definition uicomponentselectstartmsg.h:27
UIScreen(DataArray *pData)
Construct a screen from its script description.