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

The parts of the head-up display that belong to the whole screen rather than to one player. More...

#include <hudpanel.h>

Collaboration diagram for HudPanel:

Public Member Functions

 HudPanel ()
 Build every part.
void SetFrame (float flFrame, float flTime)
 Advance every animated part.

Public Attributes

HudPosition mPosition
HudScreenFlash mScreenFlash
HudGenMessage mMessage
OvyAssembly mAssembly
OvyAssembly mLabelSwap
HudHighlight mHighlight
HudAnalogStick mAnalogStick
HudTcGroup mTcGroup
HudScorePulse mScorePulse
HudLetterbox mLetterbox
HudWinMessage mWinMessage
HudFeedback mFeedback

Detailed Description

The parts of the head-up display that belong to the whole screen rather than to one player.

The class is not polymorphic and emits no RTTI. No descriptor, tag, or file path identifies it, and its name is inferred. Overlay allocates one with the untagged scalar allocator (0x164 bytes) and records it at its +0x04.

The class declares no destructor. Overlay's destructor inlines the implicit one (~HudTextMessage() for the win message and ~HudPosition() at 0x0041ac18) and then frees the block.

Every member is public because Overlay's handlers drive the parts directly.

Constructor & Destructor Documentation

◆ HudPanel()

HudPanel::HudPanel ( )

Build every part.

The song position bar is built over the play map Globals::GetPlayMap() reports, the assembly animation <layout> assembly.view ramps from frame 0 to frame 100 over 480 units, and the label swap animation HUD1 label swap.tnm ramps from frame 100 to frame 200 over 480 units.

Ghidra address:
NTSC-U/C: 0x0041c3a0
Ghidra address:
PAL: 0x00456d58

Member Function Documentation

◆ SetFrame()

void HudPanel::SetFrame ( float flFrame,
float flTime )

Advance every animated part.

The song position bar, the highlight box, the letterbox, and the frame feedback follow the song position, and the two animation ramps and the win message follow the time. The screen flash reads the free-running clock.

Parameters
flFrameThe song position, in MIDI ticks.
flTimeThe time.
Ghidra address:
NTSC-U/C: 0x0041c7d8
Ghidra address:
PAL: 0x00457238

Member Data Documentation

◆ mPosition

HudPosition HudPanel::mPosition

The song position bar. +0x00

◆ mScreenFlash

HudScreenFlash HudPanel::mScreenFlash

The full-screen fade. +0x40

◆ mMessage

HudGenMessage HudPanel::mMessage

HUD genmsg.txt. +0x54

◆ mAssembly

OvyAssembly HudPanel::mAssembly

The assembly animation. +0x58

◆ mLabelSwap

OvyAssembly HudPanel::mLabelSwap

The label swap animation. +0x74

◆ mHighlight

HudHighlight HudPanel::mHighlight

The highlight box. +0x90

◆ mAnalogStick

HudAnalogStick HudPanel::mAnalogStick

The analog stick prompt. +0x104

◆ mTcGroup

HudTcGroup HudPanel::mTcGroup

tc_hi_group.view. +0x110

◆ mScorePulse

HudScorePulse HudPanel::mScorePulse

The pulse over the leader's score. +0x114

◆ mLetterbox

HudLetterbox HudPanel::mLetterbox

The letterbox bars. +0x118

◆ mWinMessage

HudWinMessage HudPanel::mWinMessage

The closing sequence. +0x134

◆ mFeedback

HudFeedback HudPanel::mFeedback

The frame feedback before the song. +0x160


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