wavelength 1.0.0
Loading...
Searching...
No Matches
metamainscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
4#include "script/dataarray.h"
7
18class MetaMainScreen : public FreqScreen {
19public:
26 ~MetaMainScreen() override = default;
27
35 explicit MetaMainScreen(DataArray *pData);
36
47 static UIScreen *New(DataArray *pData) {
48 return new MetaMainScreen(pData);
49 }
50
59 bool DispatchPriv(Message *pMsg) override;
60
69 void Exit(UIScreen *pNextScreen, float fTime) override;
70
80 void Enter(UIScreen *pPrevScreen, float fTime) override;
81
89 const char *Title() override {
90 return "";
91 }
92
107
117};
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
const char * Title() override
Report the empty title of the screen.
Definition metamainscreen.h:89
bool DispatchPriv(Message *pMsg) override
Route a chosen button and a focus change, and pass on every other message.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition metamainscreen.h:47
MetaMainScreen(DataArray *pData)
Construct the screen from its script description.
bool HandleFocusChange(UIComponentFocusChangeMsg *pMsg)
Play the portal sound of the button that receives the focus in the main panel.
void Exit(UIScreen *pNextScreen, float fTime) override
Stop the portal sounds and start the exit.
~MetaMainScreen() override=default
Destroy the object.
bool HandleSelect(UIComponentSelectMsg *pMsg)
Set up the game the chosen button of the cross button leads to.
void Enter(UIScreen *pPrevScreen, float fTime) override
Start the entry and, when several controllers were in use, reduce the game to the first player.
Message a panel sends before it moves its focus to another component.
Definition uicomponentfocuschangemsg.h:26
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.