resonance 1.0.1
Loading...
Searching...
No Matches
HudCountdown Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ HudCountdown()

HudCountdown::HudCountdown ( int nIndex,
int nTargetBar )

Resolve the countdown's objects and hide its blur.

Parameters
nIndexThe track display number that fills <layout> countdown<n>.
nTargetBarThe bar the countdown runs to. HudTrack's constructor reads it from PlayMap::GetEndBar() of Globals::GetPlayMap(), the last bar of the level.
Ghidra address:
NTSC-U/C: 0x004191b8
Ghidra address:
PAL: 0x00453640

Member Function Documentation

◆ SetFrame()

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.

Parameters
flFrameThe song position, in MIDI ticks.
Ghidra address:
NTSC-U/C: 0x004194c0
Ghidra address:
PAL: 0x00453998

The documentation for this class was generated from the following file: