resonance 1.0.1
Loading...
Searching...
No Matches
metlocpickcharscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
6
9
10namespace Rnd {
11class Button;
12class Mat;
13class Mesh;
14class Tex;
15class View;
16} // namespace Rnd
17
37public:
49 MetLocPickCharScreen(MetRenderer *pRenderer, int nPriority);
50
56
66 static MetLocPickCharScreen *New(MetRenderer *pRenderer, int nPriority);
67
77 virtual void EnterAndShow();
78
89 virtual void OnMsgScreenDismissed(const HxStr &name, int nChoice);
90
100 virtual void HandleCommand(const MetScreenCommand *pCommand);
101
111 virtual void PlaySlideSound(int nSelector);
112
121 virtual void PlayHighSound(int) {
122 }
123
133 virtual void PlayCycleLeftSound(int nSelector);
134
144 virtual void PlayCycleRightSound(int nSelector);
145
156 virtual void UpdateIdle(float flTime);
157
167 virtual void OnExitFinished();
168
178 virtual void ResolveContainerViews();
179
188 virtual void StartDetect();
189
198 virtual void StartLoadPersonas();
199
208 virtual void OnNoCard();
209
220 virtual void OnDetectFinished();
221
234 virtual void OnPersonasLoaded(int nPortSlot, int nStatus);
235
236private:
245 void CyclePersona(const MetScreenCommand *pCommand);
246
256 void SelectPersona(MetPersonaData *pPersona, int nPlayer);
257
267 void ShowPickers();
268
269 // Players who have locked a character in.
270 int mReadyCount; // +0xa0
271 // From MetFrontEndState::mPlayerCount.
272 int mPlayerCount; // +0xa4
273 // Each view shows once its player locks a character in.
274 std::vector<Rnd::View *> mSelectViews; // +0xa8
275 std::vector<Rnd::Mat *> mCharacterMats; // +0xb4
276 std::vector<Rnd::Button *> mNameButtons; // +0xc0
277 std::vector<Rnd::Mesh *> mControllerMeshes; // +0xcc
278 // Each player's index into mPersonas.
279 std::vector<int> mChoices; // +0xd8
280 std::vector<Rnd::Tex *> mBurnTextures; // +0xe4
281 // Frames until the forward exit.
282 float mExitCountdown; // +0xf0
283 std::vector<MetPersonaData *> mChosenPersonas; // +0xf4
284 // The two icon materials are not written by the constructor.
285 Rnd::Mat *mDefaultIconMat; // +0x100
286 Rnd::Mat *mCustomIconMat; // +0x104
287 std::vector<MetPersonaData *> mPersonas; // +0x108
288 // Indices into GlobalSettings::mCardSlots.
289 std::vector<int> mFormattedCards; // +0x114
290 // Index into mFormattedCards of the card being loaded.
291 int mCardIndex; // +0x120
292 // Zeroed by the constructor and never read or written again.
293 int mUnusedFirst; // +0x124
294 int mUnusedSecond; // +0x128
295 // The two flags are not written by the constructor.
296 int mShowOnDismiss; // +0x12c
297 int mLoadingCards; // +0x130
298 std::vector<int> mCardPersonaStarts; // +0x134
299};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
virtual void StartLoadPersonas()
Skip the base persona load and go straight to StartSaveSpaceCheck().
virtual void UpdateIdle(float flTime)
Count down mExitCountdown one step per frame and exit forwards when it reaches zero,...
virtual ~MetLocPickCharScreen()
virtual void OnNoCard()
Offer to retry the probe or to continue without a card.
virtual void OnMsgScreenDismissed(const HxStr &name, int nChoice)
Show the pickers once the probe's last dialogue closes, or defer to the probe.
virtual void OnPersonasLoaded(int nPortSlot, int nStatus)
Record one card's personas and load the next formatted card, or close the loading notice.
virtual void StartDetect()
Show the multi-player detection notice, then run the base probe.
virtual void EnterAndShow()
Show the pickers, first refilling mPersonas when MetLocNumPlayScreen brought the screen up.
virtual void OnExitFinished()
Bring up the next screen once this one has exited.
virtual void PlaySlideSound(int nSelector)
Play the slide sound for a player who has not locked a character in.
MetLocPickCharScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual void PlayHighSound(int)
Play nothing.
Definition metlocpickcharscreen.h:121
virtual void HandleCommand(const MetScreenCommand *pCommand)
Cycle, lock in, or release one player's character, or back out.
virtual void OnDetectFinished()
Load the personas from every formatted card, or append the saved personas and show the pickers when t...
virtual void ResolveContainerViews()
Resolve the base views and the four players' materials, views, buttons, meshes, and burn textures,...
static MetLocPickCharScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void PlayCycleLeftSound(int nSelector)
Play the cycle-left sound for a player who has not locked a character in.
virtual void PlayCycleRightSound(int nSelector)
Play the cycle-right sound for a player who has not locked a character in.
MetMemDetectScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct the detector.
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
Selectable widget, as one mesh and one text run plus a palette for each.
Definition button.h:39
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
Root of a loadable scene.
Definition view.h:47
The rendering engine.
Definition animhelper.h:3
One navigation command delivered to a screen.
Definition metscreen.h:46