resonance 1.0.1
Loading...
Searching...
No Matches
metfreqcreatescreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "met/metscreen.h"
6
7class MetButtonList;
9namespace Rnd {
10class Button;
11class Tex;
12} // namespace Rnd
13
37public:
50 MetFreqCreateScreen(MetRenderer *pRenderer, int nPriority);
51
59
71 static MetFreqCreateScreen *New(MetRenderer *pRenderer, int nPriority);
72
82 virtual void EnterAndShow();
83
94 virtual void HandleCommand(const MetScreenCommand *pCommand);
95
105 virtual void PlayCycleLeftSound(int nSelector);
106
116 virtual void PlayCycleRightSound(int nSelector);
117
127 virtual void OnRepeatingSoundFinished(Rnd::Button *pButton);
128
142 virtual void OnExitFinished();
143
152 virtual void ResolveContainerViews();
153
154private:
161 void StepSelection(const MetScreenCommand *pCommand);
162
169 void RefreshSelection();
170
171 std::vector<MetPersonaData *> *mIdentities; // +0x8c, the pre-fab list slot 5 takes
172 MetButtonList *mButtonList; // +0x90
173 int mSelectedIdentity; // +0x94
174 Rnd::Button *mLeftArrow; // +0x98, `cf_left.but`
175 Rnd::Button *mRightArrow; // +0x9c, `cf_right.but`
176 Rnd::Tex *mBurnTexture; // +0xa0
177};
Ring of front-end buttons with one of them selected.
Definition metbuttonlist.h:34
virtual void PlayCycleRightSound(int nSelector)
Play the base cycle-right sound while the first button is selected.
MetFreqCreateScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
static MetFreqCreateScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void OnRepeatingSoundFinished(Rnd::Button *pButton)
Exit forwards once the chosen button's alternation has finished.
virtual void PlayCycleLeftSound(int nSelector)
Play the base cycle-left sound while the first button is selected.
virtual void OnExitFinished()
Bring up the next screen once this one has exited.
virtual void ResolveContainerViews()
Resolve the base views and the two arrows, and add the two buttons with their help texts.
virtual void HandleCommand(const MetScreenCommand *pCommand)
Step the buttons or the carousel, start the chosen button's alternation, or back out.
virtual ~MetFreqCreateScreen()
Delete the button list.
virtual void EnterAndShow()
Take the pre-fab list, select the first button, refresh the preview, set the title,...
Saved record of one player persona.
Definition metpersonadata.h:39
Front-end renderer that owns the screen stack and drives every MetScreen.
Definition metrenderer.h:68
MetScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct a screen and start its container load.
Selectable widget, as one mesh and one text run plus a palette for each.
Definition button.h:39
Texture, as a bitmap path plus the load state of its mip levels.
Definition tex.h:43
The rendering engine.
Definition animhelper.h:3
One navigation command delivered to a screen.
Definition metscreen.h:46