resonance 1.0.1
Loading...
Searching...
No Matches
metcreditsscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/creditsroll.h"
4#include "met/metscreen.h"
5
6namespace Rnd {
7class TransAnim;
8class View;
9} // namespace Rnd
10
27public:
39 MetCreditsScreen(MetRenderer *pRenderer, int nPriority);
40
46
58 static MetCreditsScreen *New(MetRenderer *pRenderer, int nPriority);
59
70 virtual void EnterAndShow();
71
79 virtual void HandleCommand(const MetScreenCommand *pCommand);
80
88 virtual void PlaySlideSound(int nSelector);
89
97 virtual void PlayHighSound(int nSelector);
98
106 virtual void PlayCycleLeftSound(int nSelector);
107
115 virtual void PlayCycleRightSound(int nSelector);
116
124 virtual void UpdateIdle(float flTime);
125
132 virtual void OnExitFinished();
133
143 virtual void ResolveContainerViews();
144
145private:
146#ifdef ENABLE_PATCHES
147 // Open the roll with the reconstruction's credit and lengthen the scroll to match.
148 void AddLeadingCredit();
149#endif
150
151 CreditsRoll *mCreditsRoll; // +0x8c, the scroller slot 38 builds
152 Rnd::TransAnim *mAnimation; // +0x90, `Group_credit.tnm`
153 float mStartFrame; // +0x94, the renderer time the screen entered at
154 float mEndFrame; // +0x98, the end frame of mAnimation
155#ifdef ENABLE_PATCHES
156 // mGroup is the roll's group, and mGroupStep is how far it moves per frame. Past
157 // mAnimationEndFrame the group continues to move until mEndFrame. mEndFrame is later by the
158 // frames the leading credit's distance takes.
159 Rnd::View *mGroup = nullptr;
160 float mAnimationEndFrame = 0.0f;
161 float mGroupStep[3] = {};
162#endif
163};
Scroller behind MetCreditsScreen that shows each credit while it crosses the screen.
Definition creditsroll.h:32
virtual void PlayCycleLeftSound(int nSelector)
Play nothing.
virtual ~MetCreditsScreen()
virtual void PlayCycleRightSound(int nSelector)
Play nothing.
virtual void HandleCommand(const MetScreenCommand *pCommand)
Begin the exit on the back command.
virtual void EnterAndShow()
Rewind the roll, show the screen, and complete the entry at once.
static MetCreditsScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void OnExitFinished()
Hide every credit and return to the options screens.
virtual void PlaySlideSound(int nSelector)
Play nothing.
MetCreditsScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual void UpdateIdle(float flTime)
Advance the animation and the roll.
virtual void PlayHighSound(int nSelector)
Play nothing.
virtual void ResolveContainerViews()
Resolve the view, the animation, and the camera, and build the roll.
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.
Animation that drives one transformable from three keyframe channels.
Definition transanim.h:49
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