Message of two lines that flies across the head-up display and trails a blur.
More...
#include <hudtextmessage.h>
|
| | 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 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.
|
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.
◆ 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
-
| pHudView | The 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
◆ 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
-
| pszText | The large line. |
| pszSmallText | The small line. |
| fDuration | The time the message rests in view, in milliseconds. |
| fScale | The horizontal and depth scale of the lines. |
| nPlayer | The player whose colour the lines take, or a negative value for the default. |
| fX | The horizontal place of the message. |
| fZ | The 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
◆ 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: