resonance 1.0.1
Loading...
Searching...
No Matches
metmcfreqdelscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
9#include "met/metscreen.h"
10
11class MetPersonaData;
12class ScrollingList;
13
14namespace Rnd {
15class Mat;
16class Mesh;
17class Tex;
18class Text;
19} // namespace Rnd
20
43 public MetScreen,
44 public MemcardUser,
45 public ListDataProvider,
47public:
60 MetMCFreqDelScreen(MetRenderer *pRenderer, int nPriority);
61
69
79 static MetMCFreqDelScreen *New(MetRenderer *pRenderer, int nPriority);
80
89 virtual void EnterAndShow();
90
99 virtual void OnPanelActivated();
100
113 virtual void OnMsgScreenDismissed(const HxStr &name, int nChoice);
114
124 virtual void HandleCommand(const MetScreenCommand *pCommand);
125
134 virtual void PlaySlideSound(int) {
135 }
136
145 virtual void PlayCycleLeftSound(int) {
146 }
147
156 virtual void PlayCycleRightSound(int) {
157 }
158
167 virtual void OnExitFinished();
168
177 virtual void ResolveContainerViews();
178
189 virtual void OnConnectState(MemcardConnectState state, int nStatus);
190
202 virtual void OnPersonasLoaded(int nPortSlot, int nStatus);
203
217 virtual int ProvideText(int nItem, int nColumn, Rnd::Text *pText, int nContext);
218
230 virtual int ProvideMesh(int nItem, int nColumn, Rnd::Mesh *pMesh, int nContext);
231
242
243private:
253 void ShowList();
254
264 void ShowSelection();
265
266 Rnd::Text *mNameText; // +0x98
267 Rnd::Mat *mFaceMat; // +0x9c
268 int mReserved1; // +0xa0, never read or written
269 Rnd::Mesh *mFreqMesh; // +0xa4
270 Rnd::Text *mBirthdayText; // +0xa8
271 Rnd::Tex *mBurnTexture; // +0xac
272 int mReserved2; // +0xb0, never read or written
273 // Set while a confirmed deletion runs. +0xb4
274 int mDeleting;
275 ScrollingList *mList; // +0xb8
276 MemcardConnectState mCardSlot; // +0xbc
277 // The persona a copy command chose, until the copy starts. +0xd4
278 MetPersonaData *mCopyPersona;
279 // The personas the screen lists. The destructor deletes each one. +0xd8
280 std::vector<MetPersonaData *> mPersonas;
281 // Set by EnterAndShow() and cleared once the list shows. +0xe4
282 int mLoadPending;
283};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Mix-in for an object that supplies the rows of a scrolling list to the screen that draws it.
Definition listdataprovider.h:30
Receiver notified once a memory-card task has finished.
Definition memcarduser.h:24
virtual void OnPersonasLoaded(int nPortSlot, int nStatus)
Close the loading notice, report that the card has no FreQ, or report a failed load.
virtual void OnConnectState(MemcardConnectState state, int nStatus)
Load the card's personas, or report that the card could not be read.
virtual void PlaySlideSound(int)
Play nothing.
Definition metmcfreqdelscreen.h:134
virtual void HandleCommand(const MetScreenCommand *pCommand)
Scroll the list, back out, or start a copy or a deletion.
virtual ~MetMCFreqDelScreen()
Delete the list and every listed persona.
virtual void PlayCycleLeftSound(int)
Play nothing.
Definition metmcfreqdelscreen.h:145
virtual void OnPanelActivated()
Show the loading notice and query the card, when a load is due.
virtual int ProvideText(int nItem, int nColumn, Rnd::Text *pText, int nContext)
Show the username of one persona of mPersonas.
virtual int ProvideMesh(int nItem, int nColumn, Rnd::Mesh *pMesh, int nContext)
Leave the cell as it is.
virtual void EnterAndShow()
Hide the screen and mark the card's personas as due to load.
static MetMCFreqDelScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
void SetCardSlot(MemcardConnectState slot)
Record the card the screen works on, and clear mLoadPending.
virtual void OnExitFinished()
Confirm a copy or a deletion, or return to MetMemCardTypeScreen, once the screen has exited.
virtual void OnMsgScreenDismissed(const HxStr &name, int nChoice)
Act on the player's response to one of the screen's dialogues.
virtual void ResolveContainerViews()
Resolve the base views, title the two panels, and resolve the persona detail objects.
virtual void PlayCycleRightSound(int)
Play nothing.
Definition metmcfreqdelscreen.h:156
MetMCFreqDelScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
Mix-in for a screen that receives the outcome of the memory-card picker.
Definition metmemcardpickeruser.h:31
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.
Surface description a Rnd::Mesh draws with.
Definition mat.h:36
Indexed triangle mesh with one material.
Definition mesh.h:46
Texture, as a bitmap path plus the load state of its mip levels.
Definition tex.h:43
Run of text drawn as a quad per glyph.
Definition text.h:57
Scrolling list of rows driven by a ListDataProvider.
Definition scrollinglist.h:45
The rendering engine.
Definition animhelper.h:3
What one card slot reports about itself, and the memory-card location the front end stores.
Definition memcardconnectstate.h:21
One navigation command delivered to a screen.
Definition metscreen.h:46