wavelength 1.0.0
Loading...
Searching...
No Matches
metastartscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
5#include "rnd/rndview.h"
6#include "script/dataarray.h"
8
24public:
31 ~MetaStartScreen() override = default;
32
40 explicit MetaStartScreen(DataArray *pData);
41
52 static UIScreen *New(DataArray *pData) {
53 return new MetaStartScreen(pData);
54 }
55
64 bool DispatchPriv(Message *pMsg) override;
65
74 void Poll(float fTime) override;
75
84 void Exit(UIScreen *pNextScreen, float fTime) override;
85
94 void Enter(UIScreen *pPrevScreen, float fTime) override;
95
103 const char *Title() override {
104 return "";
105 }
106
118
128
141
142private:
143 float mAttractTime;
144 RndView *mMusicView;
145};
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
void Exit(UIScreen *pNextScreen, float fTime) override
Disarm the attract demo and start the exit.
void Enter(UIScreen *pPrevScreen, float fTime) override
Blank the version text, find the logo animation, and start the entry.
bool HandleJoypad(JoypadInputMsg *pMsg)
Play the choice sound for the cross or START button of the first controller, then pass the button on.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition metastartscreen.h:52
~MetaStartScreen() override=default
Destroy the object.
void LaunchAttract()
Start the next song of attract_songs as a demo, when attract_enabled is set.
const char * Title() override
Report the title of the screen, which has none.
Definition metastartscreen.h:103
bool DispatchPriv(Message *pMsg) override
Arm the attract demo once the screen has entered, and pass on the controller buttons.
MetaStartScreen(DataArray *pData)
Construct the screen from its script description, with no attract time.
bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg)
Set the attract time once the screen has entered, then follow a shortcut.
void Poll(float fTime) override
Advance the screen, follow the music with the logo animation, and start the attract demo when its tim...
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
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