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

Closing sequence of the head-up display after a campaign is won. More...

#include <hudwinmessage.h>

Public Types

enum  State {
  kStateIdle = 0 , kStateStart = 1 , kStateCongrats = 2 , kStateTeam = 3 ,
  kStateThanks = 4 , kStatePrompt = 5
}
 Steps of the closing sequence. More...

Public Member Functions

 HudWinMessage ()
 Resolve the two messages and start idle.
void SetFrame (float flTime)
 Advance the message animation and step the sequence.
void HidePrompt ()
 Hide the prompt to exit.
void Draw ()
 Draw the two messages over the frame feedback while the sequence runs.

Public Attributes

int mState
 The step of the sequence.

Detailed Description

Closing sequence of the head-up display after a campaign is won.

The class is not polymorphic and emits no RTTI. No descriptor, tag, or file path identifies it, and its name is inferred from HUD winmsg, the message it animates. The head-up display panel embeds one at +0x134.

Overlay's WinMsg handler starts the sequence by setting mState to kStateStart. SetFrame() then sets up the frame feedback, and shows three messages in turn, a congratulation for the session's difficulty, then two credits, and finally the prompt to exit.

Member Enumeration Documentation

◆ State

Steps of the closing sequence.

Enumerator
kStateIdle 

Nothing shows.

kStateStart 

The next SetFrame() shows the congratulation.

kStateCongrats 

The congratulation shows.

kStateTeam 

The first credit shows.

kStateThanks 

The second credit shows.

kStatePrompt 

The prompt to exit shows.

Constructor & Destructor Documentation

◆ HudWinMessage()

HudWinMessage::HudWinMessage ( )

Resolve the two messages and start idle.

Ghidra address:
NTSC-U/C: 0x0041b4c8
Ghidra address:
PAL: 0x00455e40

Member Function Documentation

◆ SetFrame()

void HudWinMessage::SetFrame ( float flTime)

Advance the message animation and step the sequence.

The congratulation shows at 2.5 times the message font size, the first credit 10000 units of time later at twice the size, the second credit 10000 units after that at 1.7 times the size, and the prompt 8000 units after that. Each message stays for 8000 units between its fades. The European release looks every text up in the current language, and for a difficulty other than True, Super, or Mega it shows an empty congratulation where the North American release shows Yup.

Parameters
flTimeThe current time.
Ghidra address:
NTSC-U/C: 0x0041b658
Ghidra address:
PAL: 0x00456010

◆ HidePrompt()

void HudWinMessage::HidePrompt ( )

Hide the prompt to exit.

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

Ghidra address:
NTSC-U/C: 0x0042a800
Ghidra address:
PAL: 0x00465b50

◆ Draw()

void HudWinMessage::Draw ( )

Draw the two messages over the frame feedback while the sequence runs.

Overlay::Draw() inlines the body, and this copy has no caller. The title is inferred.

Ghidra address:
NTSC-U/C: 0x0042a830
Ghidra address:
PAL: 0x00465b80

Member Data Documentation

◆ mState

int HudWinMessage::mState

The step of the sequence.

+0x04

Public because Overlay's WinMsg handler at 0x0041e020 writes kStateStart into it directly, and Overlay::Draw() tests it, and the image has no accessor for it.


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