wavelength 1.0.0
Loading...
Searching...
No Matches
choosememcardscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "met/freqscreen.h"
7#include "script/dataarray.h"
9
19public:
26 ~ChooseMemCardScreen() override = default;
27
36
45 static UIScreen *New(DataArray *pData) {
46 return new ChooseMemCardScreen(pData);
47 }
48
57 bool DispatchPriv(Message *pMsg) override;
58
67 void Enter(UIScreen *pPrevScreen, float fTime) override;
68
78
89
91 void SetSlots(const std::vector<int> &slots) {
92 mSlots = slots;
93 }
94
95private:
96 std::vector<int> mSlots;
97 int mSlot;
98};
void SetSlots(const std::vector< int > &slots)
Definition choosememcardscreen.h:91
~ChooseMemCardScreen() override=default
Destroy the object.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition choosememcardscreen.h:45
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter at the first card, and show it or show that no card has saves.
ChooseMemCardScreen(DataArray *pData)
Construct the screen from its script description, with no cards.
bool HandleSelectStart(UIComponentSelectStartMsg *pMsg)
Step to the previous or the next card with the directional buttons.
bool DispatchPriv(Message *pMsg) override
Route a controller button and the start of a choice, and pass on every other message.
bool HandleJoypad(JoypadInputMsg *pMsg)
Check the cards again on Circle, or manage the chosen card on Cross, unless the screen is between scr...
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
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.