wavelength 1.0.0
Loading...
Searching...
No Matches
freqcopydelscreen.h
Go to the documentation of this file.
1#pragma once
2
5#include "script/dataarray.h"
7
16public:
23 ~FreqCopyDelScreen() override = default;
24
32 explicit FreqCopyDelScreen(DataArray *pData);
33
42 static UIScreen *New(DataArray *pData) {
43 return new FreqCopyDelScreen(pData);
44 }
45
54 bool DispatchPriv(Message *pMsg) override;
55
64 void Enter(UIScreen *pPrevScreen, float fTime) override;
65
75
85
87 int GetSlot() const {
88 return mSlot;
89 }
90
92 void SetSlot(int nSlot) {
93 mSlot = nSlot;
94 }
95
96private:
97 int mSlot;
98};
Reference-counted array of script data nodes.
Definition dataarray.h:20
bool HandleSelect(UIComponentSelectMsg *pMsg)
Keep the cursor of the list selected after a choice.
void SetSlot(int nSlot)
Definition freqcopydelscreen.h:92
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter, and list the Freqs.
bool HandleJoypad(JoypadInputMsg *pMsg)
Copy the chosen Freq on Circle or delete it on Square, unless the screen is between screens.
bool DispatchPriv(Message *pMsg) override
Route a controller button and a chosen component, and pass on every other message.
~FreqCopyDelScreen() override=default
Destroy the object.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition freqcopydelscreen.h:42
FreqCopyDelScreen(DataArray *pData)
Construct the screen from its script description.
int GetSlot() const
Definition freqcopydelscreen.h:87
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
SelLoadedFreqScreen(DataArray *pData)
Construct the screen from its script description, with no Freqs.
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.