wavelength 1.0.0
Loading...
Searching...
No Matches
HudTextMessage Class Reference

Message of two lines that flies across the head-up display and trails a blur. More...

#include <hudtextmessage.h>

Public Member Functions

 HudTextMessage (RndView *pHudView)
 Construct a hidden message from HUD textmsg.txt, HUD sm textmsg.txt, their blurs, and <hud> textmsg.tnm.
 ~HudTextMessage ()
 Destroy the message.
void Hide ()
 Hide the message at once.
void Show (const char *pszText, const char *pszSmallText, float fDuration, float fScale, int nPlayer, float fX, float fZ)
 Fly a message in, unless one is showing.
void Poll ()
 Advance the flight, and hide the message once it has flown out.
void Draw ()
 Pose the flight and draw the blurs.

Static Public Attributes

static constexpr float kFlyTime = 350.0f
 The time the message takes to fly in, and again to fly out, in milliseconds.
static constexpr float kNotShown = -1e9f
 The value of mStartTime when no message shows.

Detailed Description

Message of two lines that flies across the head-up display and trails a blur.

The class is not polymorphic and emits no RTTI. The object is 0x40 bytes. The title follows the head-up display message of the previous game, which shares the scene objects.

Constructor & Destructor Documentation

◆ HudTextMessage()

HudTextMessage::HudTextMessage ( RndView * pHudView)
explicit

Construct a hidden message from HUD textmsg.txt, HUD sm textmsg.txt, their blurs, and <hud> textmsg.tnm.

Parameters
pHudViewThe view the blurs are removed from.
Ghidra address:
NTSC-U/C: 0x001bb000
Ghidra address:
PAL: 0x001c3da0

◆ ~HudTextMessage()

HudTextMessage::~HudTextMessage ( )

Destroy the message.

Ghidra address:
NTSC-U/C: 0x001bb308
Ghidra address:
PAL: 0x001c40a8

Member Function Documentation

◆ Hide()

void HudTextMessage::Hide ( )

Hide the message at once.

Ghidra address:
NTSC-U/C: 0x001bb330
Ghidra address:
PAL: 0x001c40d0

◆ Show()

void HudTextMessage::Show ( const char * pszText,
const char * pszSmallText,
float fDuration,
float fScale,
int nPlayer,
float fX,
float fZ )

Fly a message in, unless one is showing.

Parameters
pszTextThe large line.
pszSmallTextThe small line.
fDurationThe time the message rests in view, in milliseconds.
fScaleThe horizontal and depth scale of the lines.
nPlayerThe player whose colour the lines take, or a negative value for the default.
fXThe horizontal place of the message.
fZThe vertical place of the message.
Ghidra address:
NTSC-U/C: 0x001bb398
Ghidra address:
PAL: 0x001c4138

◆ Poll()

void HudTextMessage::Poll ( )

Advance the flight, and hide the message once it has flown out.

Ghidra address:
NTSC-U/C: 0x001bb5b0
Ghidra address:
PAL: 0x001c4350

◆ Draw()

void HudTextMessage::Draw ( )

Pose the flight and draw the blurs.

Ghidra address:
NTSC-U/C: 0x001bb6a8
Ghidra address:
PAL: 0x001c4448

Member Data Documentation

◆ kFlyTime

float HudTextMessage::kFlyTime = 350.0f
staticconstexpr

The time the message takes to fly in, and again to fly out, in milliseconds.

◆ kNotShown

float HudTextMessage::kNotShown = -1e9f
staticconstexpr

The value of mStartTime when no message shows.


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