|
resonance 1.0.1
|
FreQ icon of one player's badge on the head-up display, with a pulse that marks the player. More...
#include <hudfreq.h>
Public Member Functions | |
| HudFreq (Player *pPlayer, int nIndex) | |
| Resolve the icon's objects for one player. | |
| void | SetPulsing (int nPulsing) |
| Start or stop the icon's pulse. | |
| void | SetShowing (int nShowing) |
| Show or hide the icon. | |
| void | SetFrame (float flFrame) |
| Advance the icon animation and the pulse. | |
FreQ icon of one player's badge on the head-up display, with a pulse that marks the player.
The class is not polymorphic, emits no RTTI, and is never allocated on its own. No descriptor, allocation tag, or file path identifies it, and its name is inferred from the s freqd family of objects its constructor resolves. It occupies +0x10 to +0x27 of HudBadge.
| HudFreq::HudFreq | ( | Player * | pPlayer, |
| int | nIndex ) |
Resolve the icon's objects for one player.
Resolves <layout> freq<p>.tnm, HUD freq pulse.mnm, HUD freq<p>.mat, and <layout> freq<n>.mesh, where <p> is the player's identifier. Sets the material's emissive colour to HudColorFromName() of the player's colour name, gives its second stage the persona burn texture for the badge number, and puts it on the mesh. The mesh is shown except in a jukebox session. The icon starts without its pulse.
| pPlayer | The player the icon shows. |
| nIndex | The badge number that fills <n> and selects the persona burn texture. |
| void HudFreq::SetPulsing | ( | int | nPulsing | ) |
Start or stop the icon's pulse.
Overlay::OnLeaderChanged() pulses the leader's icon, and Overlay's JuiceAmountMsg handler pulses the icon of a solo player whose juice passes 0.85. Both write the word through an inlined copy of this routine. The title is inferred.
| nPulsing | Non-zero to pulse. |
|
inline |
Show or hide the icon.
Overlay's PlaybackToggleMsg handler at 0x0041f9a8 inlines the body, and the out-of-line copy has no caller. The mesh is reached through its Rnd::Drawable subobject, whose vptr is at +0x10. The title is inferred.
| nShowing | Non-zero to show the icon. |
| void HudFreq::SetFrame | ( | float | flFrame | ) |
Advance the icon animation and the pulse.
The icon animation follows the frame for its first 500 ticks. The pulse loops every 480 ticks, 80 ticks ahead of the frame, and restarts its loop count only while pulsing is on. HudBadge::SetFrame() inlines the body, and this copy has no caller.
| flFrame | The song position, in MIDI ticks. |