wavelength 1.0.0
Loading...
Searching...
No Matches
netrepostoolscreen.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef VIDEO_STANDARD_PAL
4
5#include <list>
6
7#include "met/freqscreen.h"
8#include "met/repostoollist.h"
9#include "met/uploadinfo.h"
10#include "msg/joypadinputmsg.h"
12#include "os/string.h"
13#include "script/dataarray.h"
14#include "ui/uiscreen.h"
15
24class NetReposToolScreen : public FreqScreen {
25public:
32 explicit NetReposToolScreen(DataArray *pData) : FreqScreen(pData) {
33 }
34
40 ~NetReposToolScreen() override {
41 }
42
50 static UIScreen *New(DataArray *pData) {
51 return new NetReposToolScreen(pData);
52 }
53
61 bool DispatchPriv(Message *pMsg) override;
62
70 void Enter(UIScreen *pPrevScreen, float fTime) override;
71
79 void Exit(UIScreen *pNextScreen, float fTime) override;
80
90 bool RemoveRemix(const UploadInfo &info);
91
100 void AddRemix(const NetRepoRemix &remix);
101
103 const std::list<NetRepoRemix> &GetRemixes() const {
104 return mRemixes;
105 }
106
108 void SetRemixes(const std::list<NetRepoRemix> &remixes) {
109 mRemixes = remixes;
110 }
111
113 void SetNote(const char *pszNote) {
114 mNote = pszNote;
115 }
116
117private:
119 static constexpr int kNoSelection = -1;
120
130 bool HandleJoypad(JoypadInputMsg *pMsg);
131
132 ReposToolList *mList;
133 std::list<NetRepoRemix> mRemixes;
134 String mNote;
135 int mSelection = kNoSelection; // The remix whose note is being edited.
136};
137
138#endif
Front-end screen of the metagame, which places the menu projector and plays the menu sounds.
Definition freqscreen.h:28
bool HandleJoypad(JoypadInputMsg *pMsg)
Pass on a controller button of a controller the players use, and swallow any other.
void Enter(UIScreen *pPrevScreen, float fTime) override
Play the entry sound, show or hide the projector, and start the entry.
bool DispatchPriv(Message *pMsg) override
Play the sound of a chosen component, follow a shortcut, and keep unused controllers out.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition freqscreen.h:57
void Exit(UIScreen *pNextScreen, float fTime) override
Move the projector to the next screen's place and start the exit.