wavelength 1.0.0
Loading...
Searching...
No Matches
nocontrollerscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
5#include "os/string.h"
6#include "script/dataarray.h"
8
19public:
26 ~NoControllerScreen() override = default;
27
35 explicit NoControllerScreen(DataArray *pData);
36
47 static UIScreen *New(DataArray *pData) {
48 return new NoControllerScreen(pData);
49 }
50
59 bool DispatchPriv(Message *pMsg) override;
60
69 void Enter(UIScreen *pPrevScreen, float fTime) override;
70
71#ifdef VIDEO_STANDARD_PAL
83#else
94#endif
95
97 void SetPad(int nPad) {
98 mPad = nPad;
99 }
100
101private:
102 int mPad;
103 int mInGame;
104 String mReturnScreen;
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
~NoControllerScreen() override=default
Destroy the object.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition nocontrollerscreen.h:47
void Enter(UIScreen *pPrevScreen, float fTime) override
Start the entry and name the controller port in the dialog text.
bool DispatchPriv(Message *pMsg) override
Route a controller button, and pass every other message to FreqScreen.
bool HandleJoypad(JoypadInputMsg *pMsg)
Close the dialog when the cross button of mPad goes down.
void SetPad(int nPad)
Definition nocontrollerscreen.h:97
NoControllerScreen(DataArray *pData)
Construct the screen from its script description.
Growable text buffer that is also a PrnStream.
Definition string.h:19
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
bool HandleSelect(UIComponentSelectMsg *pMsg)
Follow the transition of a component chosen with the cross button.
UIScreen(DataArray *pData)
Construct a screen from its script description.