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

One plain text message of the head-up display. More...

#include <hudgenmessage.h>

Collaboration diagram for HudGenMessage:

Public Member Functions

 HudGenMessage (const HxStr &name)
 Resolve the text and hide it.
void Show (const HxStr &text)
 Show one text.
void Hide ()
 Hide the text.

Public Attributes

Rnd::Text * mText
 The text.

Detailed Description

One plain text message of 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 HUD genmsg.txt, the object both of its instances resolve. The head-up display panel embeds one at +0x54, and HudWinMessage embeds one at +0x28.

Unlike HudTextMessage, the message has no animation and no timing. It shows a text until it is hidden.

Constructor & Destructor Documentation

◆ HudGenMessage()

HudGenMessage::HudGenMessage ( const HxStr & name)

Resolve the text and hide it.

The panel and HudWinMessage both inline the body, and this copy has no caller.

Parameters
nameThe object name of the text.
Ghidra address:
NTSC-U/C: 0x0042a6d8
Ghidra address:
PAL: 0x00465a28

Member Function Documentation

◆ Show()

void HudGenMessage::Show ( const HxStr & text)

Show one text.

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

Parameters
textThe text.
Ghidra address:
NTSC-U/C: 0x0042a768
Ghidra address:
PAL: 0x00465ab8

◆ Hide()

void HudGenMessage::Hide ( )

Hide the text.

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

Ghidra address:
NTSC-U/C: 0x0042a7c0
Ghidra address:
PAL: 0x00465b10

Member Data Documentation

◆ mText

Rnd::Text* HudGenMessage::mText

The text.

+0x00

Public because HudWinMessage's draw at 0x0042a830 draws it directly, and the image has no accessor for it.


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