wavelength 1.0.0
Loading...
Searching...
No Matches
freqscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "math/quaternion.h"
4#include "math/vector3.h"
6#include "script/dataarray.h"
8#include "ui/uiscreen.h"
10
28class FreqScreen : public UIScreen {
29public:
37 explicit FreqScreen(DataArray *pData);
38
45 ~FreqScreen() override;
46
57 static UIScreen *New(DataArray *pData) {
58 return new FreqScreen(pData);
59 }
60
69 bool DispatchPriv(Message *pMsg) override;
70
77 void Draw() override;
78
90 void Exit(UIScreen *pNextScreen, float fTime) override;
91
100 void Enter(UIScreen *pPrevScreen, float fTime) override;
101
109 virtual const char *Title();
110
120 virtual void PlayButtonSound(int nButton);
121
131
142
152
153 alignas(16) Vector3 mGizmoOrig;
154 alignas(16) Quat mGizmoRot;
155
156private:
157 int mNoGizmo;
158 int mNoProjectorSfx;
159 int mNeedsTransitionSfx;
160};
Reference-counted array of script data nodes.
Definition dataarray.h:20
bool HandleJoypad(JoypadInputMsg *pMsg)
Pass on a controller button of a controller the players use, and swallow any other.
bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg)
Choose the component the shortcuts section of the metagame configuration lists for the screen.
void Enter(UIScreen *pPrevScreen, float fTime) override
Play the entry sound, show or hide the projector, and start the entry.
~FreqScreen() override
Destroy the screen.
virtual const char * Title()
Report the localised title of the screen, the token <name>_TITLE.
Quat mGizmoRot
Definition freqscreen.h:154
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Vector3 mGizmoOrig
Definition freqscreen.h:153
bool DispatchPriv(Message *pMsg) override
Play the sound of a chosen component, follow a shortcut, and keep unused controllers out.
void Draw() override
Draw what goes under each panel, then the panels.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition freqscreen.h:57
bool HandleSelectStart(UIComponentSelectStartMsg *pMsg)
Play the sound of the button that chooses a component.
virtual void PlayButtonSound(int nButton)
Play the menu sound of a controller button.
void Exit(UIScreen *pNextScreen, float fTime) override
Move the projector to the next screen's place and start the exit.
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
Rotation quaternion, stored as the vector part followed by the scalar part.
Definition quaternion.h:19
Message a component sends when the player presses the button that chooses it.
Definition uicomponentselectstartmsg.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
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14