resonance 1.0.1
Loading...
Searching...
No Matches
metfreqmakerbuttonsscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "met/metkbuser.h"
6#include "met/metscreen.h"
7#include "os/hxstr.h"
8
9class MetButtonList;
10namespace Rnd {
11class Button;
12}
13
37public:
50 MetFreqMakerButtonsScreen(MetRenderer *pRenderer, int nPriority);
51
59
71 static MetFreqMakerButtonsScreen *New(MetRenderer *pRenderer, int nPriority);
72
83 virtual void EnterAndShow();
84
96 virtual int PollContainerLoad();
97
106 virtual void OnPanelActivated();
107
121 virtual void OnMsgScreenDismissed(const HxStr &name, int nChoice);
122
135 virtual void HandleCommand(const MetScreenCommand *pCommand);
136
146 virtual void PlayCycleLeftSound(int nSelector);
147
157 virtual void PlayCycleRightSound(int nSelector);
158
169 virtual void OnRepeatingSoundFinished(Rnd::Button *pButton);
170
179 virtual void OnEnterFinished();
180
194 virtual void OnExitFinished();
195
204 virtual void ResolveContainerViews();
205
216 virtual void OnKeyboardTextEntered(const HxStr &text);
217
229 void SetEditing(int nEditing);
230
231private:
238 void UpdateRandomizeLabel();
239
249 void ShowPageForButton(Rnd::Button *pButton);
250
257 void ShowDirectionsForButton(Rnd::Button *pButton);
258
259 // Resolve the canvas and hand its persona to MetPersonaSaverScreen::StartSave(). The card is
260 // the one GlobalSettings records when MetFrontEndState::mUsingMemcard is set, and otherwise a
261 // stand-in slot named `1` on port 0. Slots 15 and 36 expand it.
262 void StartPersonaSave(const std::vector<HxStr> &screens);
263
264 // Declared in recovered offset order, with the access specifiers interleaved.
265
266 MetButtonList *mButtonList; // +0x90
267 // 1 while editing an existing persona, 0 while creating one. +0x94
268 int mEditing;
269
270public:
278
279private:
280 // The action slot 36 takes once the screen has exited, from ExitAction. +0x9c
281 int mExitAction;
282};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Ring of front-end buttons with one of them selected.
Definition metbuttonlist.h:34
virtual void ResolveContainerViews()
Resolve the base views and add the nine buttons with their labels.
virtual int PollContainerLoad()
Report the container load finished once the FreQ maker assets and the directions and inventory contai...
virtual void OnEnterFinished()
Show the page and directions of the selected button.
virtual void PlayCycleRightSound(int nSelector)
Play nothing.
virtual void EnterAndShow()
Select the first button, title the row for creating or editing, label the save button,...
virtual void OnPanelActivated()
Enable the row again and show the page and directions of the selected button.
virtual void OnKeyboardTextEntered(const HxStr &text)
Take the name the keyboard screen committed.
virtual void PlayCycleLeftSound(int nSelector)
Play nothing.
int mNewPersona
Non-zero while the persona under edit has not been saved before.
Definition metfreqmakerbuttonsscreen.h:277
MetFreqMakerButtonsScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual void OnMsgScreenDismissed(const HxStr &name, int nChoice)
Act on the save-before-leaving dialogue.
virtual void OnExitFinished()
Take the action recorded on the way out, once the screen has exited.
static MetFreqMakerButtonsScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void OnRepeatingSoundFinished(Rnd::Button *pButton)
Hand the controls to the inventory once the chosen button's alternation has finished.
virtual void HandleCommand(const MetScreenCommand *pCommand)
Step the selection, act on the selected button, or exit the FreQ maker.
void SetEditing(int nEditing)
Choose between editing an existing persona and creating a new one.
virtual ~MetFreqMakerButtonsScreen()
Delete the button list.
Mix-in for a screen that receives text from the front-end keyboard.
Definition metkbuser.h:24
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
The rendering engine.
Definition animhelper.h:3
One navigation command delivered to a screen.
Definition metscreen.h:46