resonance
1.0.1
Loading...
Searching...
No Matches
hudcountdown.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
Rnd
{
4
class
Blur
;
5
class
Text
;
6
class
TransAnim
;
7
}
// namespace Rnd
8
20
class
HudCountdown
{
21
public
:
31
HudCountdown
(
int
nIndex,
int
nTargetBar);
32
42
void
SetFrame
(
float
flFrame);
43
44
private
:
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
};
HudCountdown::SetFrame
void SetFrame(float flFrame)
Show the bars remaining and advance the digit animation.
HudCountdown::HudCountdown
HudCountdown(int nIndex, int nTargetBar)
Resolve the countdown's objects and hide its blur.
Rnd::Blur
Motion trail that redraws one drawable at the transforms it recently occupied.
Definition
blur.h:39
Rnd::Text
Run of text drawn as a quad per glyph.
Definition
text.h:57
Rnd::TransAnim
Animation that drives one transformable from three keyframe channels.
Definition
transanim.h:49
Rnd
The rendering engine.
Definition
animhelper.h:3
src
app
hudcountdown.h
Generated by
1.15.0