|
resonance 1.0.1
|
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. | |
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.
| 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.
| nIndex | The track display number that fills <n>. |
| 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.
| effects | One bit per item kind, bit n for kind n. |
| 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.
| nKind | The PowerupType to select. |
| void HudEffects::SetLit | ( | int | nKind, |
| int | nLit ) |
Light or darken the lamps of one kind.
The title is inferred.
| nKind | The PowerupType. |
| nLit | Non-zero to light. |