resonance 1.0.1
Loading...
Searching...
No Matches
hudcountdown.h
Go to the documentation of this file.
1#pragma once
2
3namespace Rnd {
4class Blur;
5class Text;
6class TransAnim;
7} // namespace Rnd
8
21public:
31 HudCountdown(int nIndex, int nTargetBar);
32
42 void SetFrame(float flFrame);
43
44private:
45 int mTargetBar;
46 // The count last shown. Starts at -123.
47 int mShownCount;
48 // The frame the count last changed at. Starts at 1e9.
49 float mChangeFrame;
50 Rnd::TransAnim *mAnim; // `<layout> countdown<n>.tnm`
51 Rnd::Text *mText; // `<layout> countdown<n>.txt`
52 Rnd::Blur *mBlur; // `<layout> countdown<n>.blur`
53 // Non-zero when the countdown never runs.
54 int mDisabled;
55};
void SetFrame(float flFrame)
Show the bars remaining and advance the digit animation.
HudCountdown(int nIndex, int nTargetBar)
Resolve the countdown's objects and hide its blur.
Motion trail that redraws one drawable at the transforms it recently occupied.
Definition blur.h:39
Run of text drawn as a quad per glyph.
Definition text.h:57
Animation that drives one transformable from three keyframe channels.
Definition transanim.h:49
The rendering engine.
Definition animhelper.h:3