wavelength 1.0.0
Loading...
Searching...
No Matches
introscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4#include "script/dataarray.h"
5#include "ui/uiscreen.h"
7
16class IntroScreen : public UIScreen {
17public:
24 ~IntroScreen() override = default;
25
36 explicit IntroScreen(DataArray *pData);
37
48 static UIScreen *New(DataArray *pData) {
49 return new IntroScreen(pData);
50 }
51
61 bool DispatchPriv(Message *pMsg) override;
62
70 void Poll(float fTime) override;
71
72protected:
82
83 // The system time the hold ends at, or -1 while no hold runs. +0x3c
84 float mEndTime;
85 // The hold in milliseconds. +0x40
86 float mHoldMs;
87 // The screen that follows. +0x44
88 const char *mNextScreen;
89};
Reference-counted array of script data nodes.
Definition dataarray.h:20
bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg)
Start the hold.
float mEndTime
Definition introscreen.h:84
float mHoldMs
Definition introscreen.h:86
void Poll(float fTime) override
Advance the screen, and move to the next screen once the hold has run out.
bool DispatchPriv(Message *pMsg) override
Start the hold once the move to the screen has finished, and pass every other message to UIScreen.
const char * mNextScreen
Definition introscreen.h:88
~IntroScreen() override=default
Destroy the object.
IntroScreen(DataArray *pData)
Construct the screen from its script description.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition introscreen.h:48
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.
Message a screen sends itself once its panels have finished their entry animations.
Definition uitransitioncompletemsg.h:23