wavelength 1.0.0
Loading...
Searching...
No Matches
tipsscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
5#include "script/dataarray.h"
6
15class TipsScreen : public FreqScreen {
16public:
23 ~TipsScreen() override = default;
24
32 explicit TipsScreen(DataArray *pData);
33
42 static UIScreen *New(DataArray *pData) {
43 return new TipsScreen(pData);
44 }
45
54 bool DispatchPriv(Message *pMsg) override;
55
64 void Enter(UIScreen *pPrevScreen, float fTime) override;
65
75
76private:
77 int mNumPages;
78 int mPage;
79 const char *mNextScreenName;
80 const char *mPrevScreenName;
81};
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 HandleJoypad(JoypadInputMsg *pMsg)
Turn the page with a button that FreqScreen::HandleJoypad() passes on.
TipsScreen(DataArray *pData)
Construct the screen from its script description.
void Enter(UIScreen *pPrevScreen, float fTime) override
Show the page number and start the entry.
bool DispatchPriv(Message *pMsg) override
Route a controller button to HandleJoypad(), and pass on every other message.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition tipsscreen.h:42
~TipsScreen() override=default
Destroy the object.
UIScreen(DataArray *pData)
Construct a screen from its script description.