wavelength 1.0.0
Loading...
Searching...
No Matches
metaarenascreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
5#include "os/string.h"
6#include "script/dataarray.h"
7#include "ui/uicomponent.h"
10#include "ui/uipanel.h"
11
24public:
31 ~MetaArenaScreen() override = default;
32
40 explicit MetaArenaScreen(DataArray *pData);
41
52 static UIScreen *New(DataArray *pData) {
53 return new MetaArenaScreen(pData);
54 }
55
65 bool DispatchPriv(Message *pMsg) override;
66
74 void Poll(float fTime) override;
75
89 void Enter(UIScreen *pPrevScreen, float fTime) override;
90
98 const char *Title() override;
99
112 void UpdateBand(UIComponent *pArena, UIPanel *pPanel);
113
124
139
153
154private:
155 UIComponent *mFocusArena;
156 String mPendingScreen;
157 int mChangePending;
158};
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 DispatchPriv(Message *pMsg) override
Route a chosen button, a focus change, and a controller button, and pass on every other message.
void Poll(float fTime) override
Advance the screen, and change to mPendingScreen once the song preview plays.
bool HandleFocusChange(UIComponentFocusChangeMsg *pMsg)
List the songs of the arena that receives the focus, and play the wheel sound when the focus moves to...
~MetaArenaScreen() override=default
Destroy the object.
const char * Title() override
Report the title of the screen, the localised title with the mode and the difficulty.
void UpdateBand(UIComponent *pArena, UIPanel *pPanel)
List the songs of an arena that receives the focus in the s_g_sel_arena panel.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition metaarenascreen.h:52
bool HandleSelect(UIComponentSelectMsg *pMsg)
Choose the arena of a button that is not greyed out with the cross button.
MetaArenaScreen(DataArray *pData)
Construct the screen from its script description, with no pending change.
void Enter(UIScreen *pPrevScreen, float fTime) override
Enable the arenas that have songs, grey out the locked ones, and focus an arena, then start the entry...
bool HandleJoypad(JoypadInputMsg *pMsg)
Swallow buttons while the screen changes, and go back to the skill menu with the triangle button.
Growable text buffer that is also a PrnStream.
Definition string.h:19
Message a panel sends before it moves its focus to another component.
Definition uicomponentfocuschangemsg.h:26
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
One control of a front-end panel, such as a label, a button, or a list.
Definition uicomponent.h:21
Group of components drawn from one .rnd file, which a screen shows.
Definition uipanel.h:35
UIScreen(DataArray *pData)
Construct a screen from its script description.