resonance 1.0.1
Loading...
Searching...
No Matches
metmemdetectstartup.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/fadeuser.h"
4#include "met/metfade.h"
6
44public:
53 MetMemDetectStartup(MetRenderer *pRenderer, int nPriority);
54
60
72 static MetMemDetectStartup *New(MetRenderer *pRenderer, int nPriority);
73
82 virtual void OnFadeOutDone();
83
92 virtual void OnFadeInDone();
93
103 virtual void EnterAndShow();
104
113 virtual void BeginExit();
114
125 virtual void UpdateIdle(float flTime);
126
135 virtual void StartDetect();
136
145 virtual void OnNoCard();
146
155 virtual void OnDetectFinished();
156
166 virtual void PlaySlideSound(int) {
167 }
168
175 virtual void PlayLeaveSound(int) {
176 }
177
184 virtual void PlayHighSound(int) {
185 }
186
193 virtual void PlayCycleLeftSound(int) {
194 }
195
202 virtual void PlayCycleRightSound(int) {
203 }
204
211 virtual void PlayErrorSound(int) {
212 }
213
214private:
215 MetFade *mFade; // +0xa4
216 // The time OnNoCard() ran, or 0 once the `mem_check` dialogue is up. +0xa8
217 float mNoCardTime;
218 // The time EnterAndShow() ran, or 0 once the fade out has started. Not written by the
219 // constructor. +0xac
220 float mEnterTime;
221};
Mix-in for an object that takes part in a screen fade.
Definition fadeuser.h:28
Driver of the full-screen metagame fade.
Definition metfade.h:29
MetMemDetectScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct the detector.
virtual ~MetMemDetectStartup()
virtual void PlayCycleRightSound(int)
Silence the cycle-right sound.
Definition metmemdetectstartup.h:202
virtual void BeginExit()
Bring up MetSonyScreen.
virtual void PlayErrorSound(int)
Silence the error sound.
Definition metmemdetectstartup.h:211
virtual void OnFadeInDone()
Hide the screen and exit once the fade in has finished.
virtual void PlayCycleLeftSound(int)
Silence the cycle-left sound.
Definition metmemdetectstartup.h:193
MetMemDetectStartup(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual void OnFadeOutDone()
Start the probe once the fade out has finished.
virtual void OnDetectFinished()
Fade back in.
virtual void StartDetect()
Show the detection notice and run the base probe.
virtual void UpdateIdle(float flTime)
Advance the fade, start the fade out 360 frames after the screen entered, raise mem_check 360 frames ...
virtual void OnNoCard()
Record the time a missing card was found.
virtual void EnterAndShow()
Attach the container view to the renderer, enable game drawing, hide the screen, and record the time ...
static MetMemDetectStartup * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void PlaySlideSound(int)
Silence the slide sound.
Definition metmemdetectstartup.h:166
virtual void PlayHighSound(int)
Silence the high sound.
Definition metmemdetectstartup.h:184
virtual void PlayLeaveSound(int)
Silence the leave sound.
Definition metmemdetectstartup.h:175
Front-end renderer that owns the screen stack and drives every MetScreen.
Definition metrenderer.h:68