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

Effect lamps of one player's track display on the head-up display. More...

#include <hudeffects.h>

Classes

struct  Lamp
 One lamp, a plain twelve-byte record. More...

Public Member Functions

 HudEffects (int nIndex)
 Resolve the shared materials and fonts and build one lamp per listed kind, all unlit.
void SetMask (BarStatusMsg::Effects effects)
 Light every lamp whose kind's bit is set in a mask, and darken the rest.
void Select (int nKind)
 Show one kind's name in the selected font and every other name in the plain font.
void SetLit (int nKind, int nLit)
 Light or darken the lamps of one kind.

Detailed Description

Effect lamps 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 fx objects it resolves. HudTrack embeds one at +0x58.

The constructor builds one lamp per item kind that configuration code 0x389 lists, in list order. Each lamp is a mesh whose material shows the lamp lit or unlit, and a text naming the kind whose font shows it selected or not.

Constructor & Destructor Documentation

◆ HudEffects()

HudEffects::HudEffects ( int nIndex)

Resolve the shared materials and fonts and build one lamp per listed kind, all unlit.

The wires, <layout> fxwires<n>.mesh, show only in kPlayModeJam.

Parameters
nIndexThe track display number that fills <n>.
Ghidra address:
NTSC-U/C: 0x00417f50
Ghidra address:
PAL: 0x00451f90

Member Function Documentation

◆ SetMask()

void HudEffects::SetMask ( BarStatusMsg::Effects effects)

Light every lamp whose kind's bit is set in a mask, and darken the rest.

The kHudItemGuides lamp does not change. Overlay::OnBarChanged() passes the effect mask a BarStatusMsg reports. The title is inferred.

Parameters
effectsOne bit per item kind, bit n for kind n.
Ghidra address:
NTSC-U/C: 0x00418760
Ghidra address:
PAL: 0x00452860

◆ Select()

void HudEffects::Select ( int nKind)

Show one kind's name in the selected font and every other name in the plain font.

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

Parameters
nKindThe PowerupType to select.
Ghidra address:
NTSC-U/C: 0x00429e98
Ghidra address:
PAL: 0x004654d8

◆ SetLit()

void HudEffects::SetLit ( int nKind,
int nLit )

Light or darken the lamps of one kind.

The title is inferred.

Parameters
nKindThe PowerupType.
nLitNon-zero to light.
Ghidra address:
NTSC-U/C: 0x00429f28
Ghidra address:
PAL: 0x00465568

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