wavelength 1.0.0
Loading...
Searching...
No Matches
freqmakercustomscreen.h
Go to the documentation of this file.
1#pragma once
2
6#include "script/dataarray.h"
7#include "ui/uibutton.h"
9
21public:
30
38
49 static UIScreen *New(DataArray *pData) {
50 return new FreqMakerCustomScreen(pData);
51 }
52
61 bool DispatchPriv(Message *pMsg) override;
62
75 void Enter(UIScreen *pPrevScreen, float fTime) override;
76
84 const char *Title() override;
85
92 void Undo() override;
93
101
112
123
124private:
125 AvatarPartSet mSaved;
126 int mSavedValid;
127 int mChanged;
128 UIButton *mDoneButton;
129};
Parts and colours of a player's avatar, the Freq the Freq maker edits.
Definition avatarpartset.h:23
Reference-counted array of script data nodes.
Definition dataarray.h:20
void Enter(UIScreen *pPrevScreen, float fTime) override
Copy the Freq unless a copy is pending, and start the entry.
void Undo() override
Restore the Freq from the copy the entry made.
bool HandleJoypad(JoypadInputMsg *pMsg)
Return to f_maker on the triangle button, through f_maker_lose_custom_changes when the Freq changed.
void UpdateDone()
Disable done while a needed part of the Freq is missing, and enable it otherwise.
bool DispatchPriv(Message *pMsg) override
Route controller buttons and buttons about to be chosen, and pass on every other message.
bool HandleSelectStart(UIComponentSelectStartMsg *pMsg)
Accept the changes on done, remove the parts on clear, and note a change on the other buttons chosen ...
~FreqMakerCustomScreen() override
Destroy the screen.
FreqMakerCustomScreen(DataArray *pData)
Construct the screen from its script description.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition freqmakercustomscreen.h:49
const char * Title() override
Report the localised title, f_maker_c_TITLE.
FreqMakerUndoScreen(DataArray *pData)
Construct the screen from its script description.
Definition freqmakerundoscreen.h:20
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
Component the player chooses with the cross button.
Definition uibutton.h:24
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.