|
resonance 1.0.1
|
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. | |
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.
| HudPoints::HudPoints | ( | int | nIndex | ) |
Resolve the readout's objects, arm the exit animation at frame 100, and hide both texts.
| nIndex | The track display number that fills <layout> pts<n>, ptsmult<n>, and pts_exit<n>. |
| 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.
| flTime | The time AnimHelper::Update() compares against. |
| 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.
| nPoints | The points to show exiting. |
| 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.
|
inline |
| 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.
| nPoints | The points to show. |
| 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.
| nMultiplier | The multiplier. |
| 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.