|
resonance 1.0.1
|
Bar countdown of one player's track display on the head-up display. More...
#include <hudcountdown.h>
Public Member Functions | |
| HudCountdown (int nIndex, int nTargetBar) | |
| Resolve the countdown's objects and hide its blur. | |
| void | SetFrame (float flFrame) |
| Show the bars remaining and advance the digit animation. | |
Bar countdown of one player's track display on the head-up display.
The class is not polymorphic and emits no RTTI. No descriptor, tag, or file path identifies it, and its name is inferred from the countdown objects it resolves. HudTrack embeds one at +0xc4.
The countdown shows the number of bars remaining before a target bar, and only while that number is 1 through 9. It runs only in kPlayModeGame, and not at all when configuration code 0x3a1 is set.
| HudCountdown::HudCountdown | ( | int | nIndex, |
| int | nTargetBar ) |
Resolve the countdown's objects and hide its blur.
| nIndex | The track display number that fills <layout> countdown<n>. |
| nTargetBar | The bar the countdown runs to. HudTrack's constructor reads it from PlayMap::GetEndBar() of Globals::GetPlayMap(), the last bar of the level. |
| void HudCountdown::SetFrame | ( | float | flFrame | ) |
Show the bars remaining and advance the digit animation.
A change of count sets the text and restarts the animation from the current frame.
| flFrame | The song position, in MIDI ticks. |