wavelength 1.0.0
Loading...
Searching...
No Matches
creditsscreen.h
Go to the documentation of this file.
1#pragma once
2
4#include "script/dataarray.h"
5#include "ui/uiscreen.h"
6
24class CreditsScreen : public UIScreen {
25public:
32 ~CreditsScreen() override = default;
33
41 explicit CreditsScreen(DataArray *pData);
42
53 static UIScreen *New(DataArray *pData) {
54 return new CreditsScreen(pData);
55 }
56
65 bool DispatchPriv(Message *pMsg) override;
66
74 void Poll(float fTime) override;
75
86 void Enter(UIScreen *pPrevScreen, float fTime) override;
87
98
106 void Advance();
107
114 void ShowPage();
115
116private:
117 const char *mTextTag;
118 const char *mCursor;
119 const char *mEnd;
120 float mHoldMs;
121 float mEndTime;
122 const char *mBetweenScreen;
123 const char *mFinalScreen;
124};
CreditsScreen(DataArray *pData)
Construct the screen from its script description.
bool DispatchPriv(Message *pMsg) override
Route a controller button, and pass every other message to UIScreen.
void Advance()
Stop the hold and go to the screen between two pages, or after the last page to the screen after the ...
void Enter(UIScreen *pPrevScreen, float fTime) override
Start the entry and the hold, and show the next page.
void ShowPage()
Fill each text object with the next line of the text, or blank it after the last line.
~CreditsScreen() override=default
Destroy the object.
bool HandleJoypad(JoypadInputMsg *pMsg)
Exit the credits on the triangle button and move on on any other button.
void Poll(float fTime) override
Advance the screen, and move on once the hold has run out.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition creditsscreen.h:53
Reference-counted array of script data nodes.
Definition dataarray.h:20
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
UIScreen(DataArray *pData)
Construct a screen from its script description.