wavelength 1.0.0
Loading...
Searching...
No Matches
freqmakeremblemscreen.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"
8#include "ui/uibutton.h"
10
20public:
29
37
48 static UIScreen *New(DataArray *pData) {
49 return new FreqMakerEmblemScreen(pData);
50 }
51
60 bool DispatchPriv(Message *pMsg) override;
61
72 void Enter(UIScreen *pPrevScreen, float fTime) override;
73
82 void Exit(UIScreen *pNextScreen, float fTime) override;
83
91 const char *Title() override;
92
102
112
113private:
114 int mOriginalIndex;
115 int mIndex;
116 int mReserved78; // +0x78, set to 1 on entry. The purpose is not recovered.
117 std::vector<const char *> mEmblems;
118 UIButton *mPartButton;
119};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqMakerEmblemScreen(DataArray *pData)
Construct the screen from its script description.
bool HandleJoypad(JoypadInputMsg *pMsg)
Restore the emblem and return to f_maker_custom on the triangle button.
~FreqMakerEmblemScreen() override
Destroy the screen.
bool DispatchPriv(Message *pMsg) override
Route buttons about to be chosen and controller buttons, and pass on every other message.
void Enter(UIScreen *pPrevScreen, float fTime) override
Start the entry, list the unlocked emblems, and show the current one.
void Exit(UIScreen *pNextScreen, float fTime) override
Start the exit and turn the camera back to the whole Freq.
const char * Title() override
Report the localised title, f_maker_c_TITLE.
bool HandleSelectStart(UIComponentSelectStartMsg *pMsg)
Step through the emblems on part, and move the focus to done on the cross button.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition freqmakeremblemscreen.h:48
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
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.