wavelength 1.0.0
Loading...
Searching...
No Matches
modescreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
4#include "script/dataarray.h"
6
18class ModeScreen : public FreqScreen {
19public:
26 ~ModeScreen() override = default;
27
35 explicit ModeScreen(DataArray *pData);
36
47 static UIScreen *New(DataArray *pData) {
48 return new ModeScreen(pData);
49 }
50
59 bool DispatchPriv(Message *pMsg) override;
60
72 void Enter(UIScreen *pPrevScreen, float fTime) override;
73
86};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
bool DispatchPriv(Message *pMsg) override
Route a chosen button, and pass on every other message.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition modescreen.h:47
~ModeScreen() override=default
Destroy the object.
void Enter(UIScreen *pPrevScreen, float fTime) override
Start the entry, hide the avatar of a local game, and disable the jukebox of a solo game until the pl...
ModeScreen(DataArray *pData)
Construct the screen from its script description.
bool HandleSelect(UIComponentSelectMsg *pMsg)
Set the rule set the button chosen with the cross button leads to.
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.