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

Points readout of one player's track display on the head-up display. More...

#include <hudpoints.h>

Public Member Functions

 HudPoints (int nIndex)
 Resolve the readout's objects, arm the exit animation at frame 100, and hide both texts.
void SetFrame (float flTime)
 Advance the exit animation, apply the pulse and flash, and let both decay.
void ShowExit (int nPoints)
 Show banked points exiting the readout.
void Bank ()
 Send the points shown out through the exit animation, if any are shown, and hide the text.
void Pulse (float flFraction)
 Flash the readout and pulse it to a fraction of a phrase.
void SetPoints (int nPoints)
 Show a points total and start its flash from zero.
void SetMultiplier (int nMultiplier)
 Show a multiplier as x<n>, visible only above 1.

Public Attributes

int mHot
 Selects the hot material for the multiplier text.

Detailed Description

Points readout 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 pts objects it resolves. HudTrack embeds one at +0x78.

The readout shows the points a phrase is building, a multiplier beside them, and an exit animation that moves banked points away. The text pulses and flashes on each change and settles back over the following frames.

Constructor & Destructor Documentation

◆ HudPoints()

HudPoints::HudPoints ( int nIndex)

Resolve the readout's objects, arm the exit animation at frame 100, and hide both texts.

Parameters
nIndexThe track display number that fills <layout> pts<n>, ptsmult<n>, and pts_exit<n>.
Ghidra address:
NTSC-U/C: 0x00418818
Ghidra address:
PAL: 0x00452918

Member Function Documentation

◆ SetFrame()

void HudPoints::SetFrame ( float flTime)

Advance the exit animation, apply the pulse and flash, and let both decay.

The points text is scaled horizontally and in depth by the pulse and brightened by the flash, the multiplier text takes the colour of the plain or the hot material, and the flash and the pulse then fall by 0.2 and 0.05.

Parameters
flTimeThe time AnimHelper::Update() compares against.
Ghidra address:
NTSC-U/C: 0x00418de8
Ghidra address:
PAL: 0x00452fa8

◆ ShowExit()

void HudPoints::ShowExit ( int nPoints)

Show banked points exiting the readout.

Hides the points text, sets the exit text, and plays the exit animation from frame 0 to frame 100 at full flash. The title is inferred.

Parameters
nPointsThe points to show exiting.
Ghidra address:
NTSC-U/C: 0x00418f90
Ghidra address:
PAL: 0x004533d8

◆ Bank()

void HudPoints::Bank ( )

Send the points shown out through the exit animation, if any are shown, and hide the text.

The exit animation plays from frame 200 to frame 300. The title is inferred.

Ghidra address:
NTSC-U/C: 0x004190a8
Ghidra address:
PAL: 0x00453510

◆ Pulse()

void HudPoints::Pulse ( float flFraction)
inline

Flash the readout and pulse it to a fraction of a phrase.

Overlay's CatchMsg handler at 0x0041fed8 inlines the body, and no out-of-line copy is recovered. The title is inferred.

Parameters
flFractionThe share of the phrase caught so far. The pulse falls back to it.

◆ SetPoints()

void HudPoints::SetPoints ( int nPoints)

Show a points total and start its flash from zero.

The out-of-line copy has no caller. The title is inferred.

Parameters
nPointsThe points to show.
Ghidra address:
NTSC-U/C: 0x00429fe0
Ghidra address:
PAL: 0x00453150

◆ SetMultiplier()

void HudPoints::SetMultiplier ( int nMultiplier)

Show a multiplier as x<n>, visible only above 1.

The out-of-line copy has no caller. The title is inferred. The European release takes the format from the current language.

Parameters
nMultiplierThe multiplier.
Ghidra address:
NTSC-U/C: 0x0042a0c8
Ghidra address:
PAL: 0x00453258

Member Data Documentation

◆ mHot

int HudPoints::mHot

Selects the hot material for the multiplier text.

Public because Overlay's MultiplierStateMsg handler at 0x00420408 writes it directly, and the image has no accessor to route the write through.


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