resonance 1.0.1
Loading...
Searching...
No Matches
metsonyscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/fadeuser.h"
4#include "met/metscreen.h"
5
6class MetFade;
7
35class MetSonyScreen : public MetScreen, public FadeUser {
36public:
45 MetSonyScreen(MetRenderer *pRenderer, int nPriority);
46
51 virtual ~MetSonyScreen();
52
64 static MetSonyScreen *New(MetRenderer *pRenderer, int nPriority);
65
74 virtual void OnFadeOutDone();
75
84 virtual void OnFadeInDone();
85
93 virtual void PlaySlideSound(int nSelector);
94
102 virtual void PlayLeaveSound(int nSelector);
103
111 virtual void PlayHighSound(int nSelector);
112
120 virtual void PlayCycleLeftSound(int nSelector);
121
129 virtual void PlayCycleRightSound(int nSelector);
130
140 virtual void EnterAndShow();
141
156 virtual void UpdateIdle(float flTime);
157
169 virtual void OnExitFinished();
170
177 virtual void ResolveContainerViews();
178
179private:
190 void Finish();
191
192 // The frame EnterAndShow() ran at, cleared once the fade out starts. +0x90
193 float mEnterTime;
194 // The frame the fade out finished at, which OnFadeOutDone() records and slot 26 clears once
195 // the fade in starts. +0x94
196 float mFadeOutDoneTime;
197 // The fade the screen drives. The constructor allocates it and the destructor releases it.
198 MetFade *mFade; // +0x98
199 // Set by EnterAndShow() while the screen is hidden, and cleared when slot 26 shows it. +0x9c
200 int mHidden;
201};
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
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.
virtual void ResolveContainerViews()
Resolve the container objects and hide the screen.
virtual void EnterAndShow()
Hide the screen and start the presentation clock.
static MetSonyScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void OnFadeInDone()
Respond to a MetFade fade in having finished.
virtual void PlayLeaveSound(int nSelector)
Play nothing.
virtual void UpdateIdle(float flTime)
Step the fade and time the presentation.
virtual void OnExitFinished()
Play the intro movie once and hand the renderer on.
virtual void OnFadeOutDone()
Respond to a MetFade fade out having finished.
MetSonyScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual ~MetSonyScreen()
virtual void PlayCycleLeftSound(int nSelector)
Play nothing.
virtual void PlayCycleRightSound(int nSelector)
Play nothing.
virtual void PlayHighSound(int nSelector)
Play nothing.
virtual void PlaySlideSound(int nSelector)
Play nothing.