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

Label of the instrument of the track the local player is on. More...

#include <ovytracklabel.h>

Inheritance diagram for OvyTrackLabel:
Collaboration diagram for OvyTrackLabel:

Public Member Functions

 OvyTrackLabel ()
 Construct a hidden label from HUD track label.tnm, HUD track label.view, HUD track label.txt, and HUD track label.mat.
 ~OvyTrackLabel () override=default
 Destroy the label.
void Show (bool bShow) override
 Record whether the label is wanted, and show it while it has a text.
void Hide ()
 Empty the label.
void SetTrack (int nPlayer, int nInstrument, int nTrackKind)
 Label the track a player moved to, when the player is the one the label follows.
void UpdateShown ()
 Show the label when it is wanted and has a text.
Public Member Functions inherited from HideablePanel
 HideablePanel (const char *pszAnim, const char *pszDrawable, bool bShown)
 Construct a panel and find its animation and drawable.
virtual ~HideablePanel ()=default
 Destroy the panel.
virtual void ShowNow (bool bShow)
 Show or hide the panel at once.
void SetObjects (const char *pszAnim, const char *pszDrawable, bool bShown)
 Find the animation and the drawable of the panel, and show or hide it at once.
void Poll ()
 Advance the slide by sDeltaTime, and show the drawable while the panel is not hidden.

Additional Inherited Members

Static Public Member Functions inherited from HideablePanel
static void ClearSnap ()
 Clear sSnap.
static void SetDeltaTime (float fDeltaTime)
 Set the time the next Poll() of every panel advances by.
static void Init ()
 Find the animation of the two-dimensional materials and the frame it rests at.
static void Terminate ()
 Forget the animation of the two-dimensional materials.
static void PoseMaterials ()
 Pose the animation of the two-dimensional materials at its resting frame.
Static Public Attributes inherited from HideablePanel
static constexpr float kShownFrame = 240.0f
 The frame of the animation at which the panel is fully shown.
static int sSnap
 Whether Show() moves a panel at once rather than sliding it.
static float sDeltaTime
 The time Poll() advances every panel by.
static RndAnimatable * sMaterialAnim
 The animation of the two-dimensional materials, mat_2d_EE.anim, or null.
static float sMaterialFrame
 The frame PoseMaterials() poses sMaterialAnim at.
Protected Attributes inherited from HideablePanel
RampAnimator mSlide

Detailed Description

Label of the instrument of the track the local player is on.

The RTTI records the class as deriving from HideablePanel. The object is 0x30 bytes. The label follows the first local player of the game.

Constructor & Destructor Documentation

◆ OvyTrackLabel()

OvyTrackLabel::OvyTrackLabel ( )

Construct a hidden label from HUD track label.tnm, HUD track label.view, HUD track label.txt, and HUD track label.mat.

Ghidra address:
NTSC-U/C: 0x001c22a0
Ghidra address:
PAL: 0x001cb040

◆ ~OvyTrackLabel()

OvyTrackLabel::~OvyTrackLabel ( )
overridedefault

Destroy the label.

Ghidra address:
NTSC-U/C: 0x00367778
Ghidra address:
PAL: 0x003d5ea8

Member Function Documentation

◆ Show()

void OvyTrackLabel::Show ( bool bShow)
inlineoverridevirtual

Record whether the label is wanted, and show it while it has a text.

Parameters
bShowWhether to show the label.
Ghidra address:
NTSC-U/C: 0x003677d0
Ghidra address:
PAL: 0x003d5f00

Reimplemented from HideablePanel.

◆ Hide()

void OvyTrackLabel::Hide ( )

Empty the label.

Ghidra address:
NTSC-U/C: 0x001c2400
Ghidra address:
PAL: 0x001cb1a0

◆ SetTrack()

void OvyTrackLabel::SetTrack ( int nPlayer,
int nInstrument,
int nTrackKind )

Label the track a player moved to, when the player is the one the label follows.

Tracks of kind 2, 4, and 5 show the name of their instrument. Others empty the label.

Parameters
nPlayerThe player.
nInstrumentThe instrument of the track, one of GfxManager::Instrument.
nTrackKindThe kind of the track.
Ghidra address:
NTSC-U/C: 0x001c2448
Ghidra address:
PAL: 0x001cb1e8

◆ UpdateShown()

void OvyTrackLabel::UpdateShown ( )

Show the label when it is wanted and has a text.

Ghidra address:
NTSC-U/C: 0x001c2608
Ghidra address:
PAL: 0x001cb3a8

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