wavelength 1.0.0
Loading...
Searching...
No Matches
pausescreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
5#include "script/dataarray.h"
7
15class PauseScreen : public FreqScreen {
16public:
23 ~PauseScreen() override = default;
24
32 explicit PauseScreen(DataArray *pData);
33
42 static UIScreen *New(DataArray *pData) {
43 return new PauseScreen(pData);
44 }
45
54 bool DispatchPriv(Message *pMsg) override;
55
64 void Enter(UIScreen *pPrevScreen, float fTime) override;
65
73 const char *Title() override {
74 return "";
75 }
76
86
97
99 void SetPad(int nPad) {
100 mPad = nPad;
101 }
102
103private:
104 int mPad;
105};
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)
Resume, end, or quit the song for the choice of the cross button.
bool HandleJoypad(JoypadInputMsg *pMsg)
Swallow the buttons of other controllers and of an entry or exit, and resume the song when the START ...
void Enter(UIScreen *pPrevScreen, float fTime) override
Focus resume and start the entry.
bool DispatchPriv(Message *pMsg) override
Route a chosen button and a controller button, and pass on every other message.
PauseScreen(DataArray *pData)
Construct the screen from its script description.
~PauseScreen() override=default
Destroy the object.
const char * Title() override
Report no title.
Definition pausescreen.h:73
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition pausescreen.h:42
void SetPad(int nPad)
Definition pausescreen.h:99
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.