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

List of labelled options on the remix head-up display, one of which a cursor selects. More...

#include <ovyremixgenpanel.h>

Inheritance diagram for OvyRemixGenPanel:
Collaboration diagram for OvyRemixGenPanel:

Classes

struct  Option
 One option: the mesh behind it and its label. More...

Public Types

enum  FontIndex { kFontNormal = 0 , kFontSelected = 1 , kNumFonts = 2 }
 The indices of mFonts. More...

Public Member Functions

 OvyRemixGenPanel ()
 Construct an empty panel.
virtual ~OvyRemixGenPanel ()
 Destroy the panel and the objects it cloned.
virtual void Poll (float fDelta)
 Blink the cursor of the selected option for 179 ticks after Flash().
virtual void Draw ()
 Draw the panel.
void Load (char chHud, const char *pszPrefix, int nPlayer, RndTransformable *pParent)
 Clone the panel's objects from the loaded scene and build its options.
RndObject * Clone (const char *pszName, int nPlayer)
 Clone one object of the loaded scene as <name> pl <player>, and own the clone.
void SetText (int nIndex, const char *pszText)
 Set the label of an option.
void Flash ()
 Start blinking the cursor of the selected option, when there is one.
void Select (int nIndex)
 Move the cursor to an option.
void SetLit (int nIndex, bool bLit)
 Draw the label of an option in the selected font or the normal one.
RndMesh * GetPanel () const

Static Public Attributes

static constexpr float kNoFlash = -1e9f
 The value of mFlashTime when no blink runs.

Protected Attributes

RndMesh * mBackground
RndMesh * mPanel

Detailed Description

List of labelled options on the remix head-up display, one of which a cursor selects.

The RTTI records the class with no base. The object is 0x48 bytes with the vptr at +0x44. The panel clones its meshes and texts from the loaded scene under a per-player name, and owns the clones.

Member Enumeration Documentation

◆ FontIndex

The indices of mFonts.

Enumerator
kFontNormal 

The font of a label that is not lit.

kFontSelected 

The font of a lit label.

kNumFonts 

The number of fonts.

Constructor & Destructor Documentation

◆ OvyRemixGenPanel()

OvyRemixGenPanel::OvyRemixGenPanel ( )

Construct an empty panel.

Ghidra address:
NTSC-U/C: 0x001b6a38
Ghidra address:
PAL: 0x001bf7d8

◆ ~OvyRemixGenPanel()

virtual OvyRemixGenPanel::~OvyRemixGenPanel ( )
virtual

Destroy the panel and the objects it cloned.

Ghidra address:
NTSC-U/C: 0x001b6af8
Ghidra address:
PAL: 0x001bf898

Member Function Documentation

◆ Poll()

virtual void OvyRemixGenPanel::Poll ( float fDelta)
virtual

Blink the cursor of the selected option for 179 ticks after Flash().

Parameters
fDeltaThe time since the last poll. The blink follows the song time instead.
Ghidra address:
NTSC-U/C: 0x001b75a0
Ghidra address:
PAL: 0x001c0340

Reimplemented in OvyRemixPanel, and OvyRemixSubPanel.

◆ Draw()

virtual void OvyRemixGenPanel::Draw ( )
virtual

Draw the panel.

Ghidra address:
NTSC-U/C: 0x001b7690
Ghidra address:
PAL: 0x001c0430

Reimplemented in OvyRemixPanel, and OvyRemixSubPanel.

◆ Load()

void OvyRemixGenPanel::Load ( char chHud,
const char * pszPrefix,
int nPlayer,
RndTransformable * pParent )

Clone the panel's objects from the loaded scene and build its options.

The objects are <prefix>_bg.mesh, <prefix>_panel.mesh, one <prefix>_<nn>.mesh and <prefix>_<nn>.txt pair per option counting from 01, and <prefix>_up.mesh, <prefix>_down.mesh, and <prefix>_hr.mesh. The materials and fonts are HUD<hud>r cursor_no.mat, HUD<hud>r cursor_hi.mat, HUD<hud>r selected.font, and, unless the head-up display is s, HUD<hud>r freq<player> bg.mat.

Parameters
chHudThe letter of the head-up display layout.
pszPrefixThe prefix of the scene objects.
nPlayerThe player. The clones are named for it.
pParentThe transform the panel moves with, or null.
Ghidra address:
NTSC-U/C: 0x001b6c40
Ghidra address:
PAL: 0x001bf9e0

◆ Clone()

RndObject * OvyRemixGenPanel::Clone ( const char * pszName,
int nPlayer )

Clone one object of the loaded scene as <name> pl <player>, and own the clone.

Parameters
pszNameThe object.
nPlayerThe player.
Returns
The clone, or null when the scene has no such object.
Ghidra address:
NTSC-U/C: 0x001b74e0
Ghidra address:
PAL: 0x001c0280

◆ SetText()

void OvyRemixGenPanel::SetText ( int nIndex,
const char * pszText )

Set the label of an option.

Parameters
nIndexThe option.
pszTextThe label.
Ghidra address:
NTSC-U/C: 0x001b76b0
Ghidra address:
PAL: 0x001c0450

◆ Flash()

void OvyRemixGenPanel::Flash ( )

Start blinking the cursor of the selected option, when there is one.

Ghidra address:
NTSC-U/C: 0x001b76f0
Ghidra address:
PAL: 0x001c0490

◆ Select()

void OvyRemixGenPanel::Select ( int nIndex)

Move the cursor to an option.

Parameters
nIndexThe option, or a negative value for none.
Ghidra address:
NTSC-U/C: 0x001b7710
Ghidra address:
PAL: 0x001c04b0

◆ SetLit()

void OvyRemixGenPanel::SetLit ( int nIndex,
bool bLit )

Draw the label of an option in the selected font or the normal one.

Parameters
nIndexThe option.
bLitWhether to use the selected font.
Ghidra address:
NTSC-U/C: 0x001b7780
Ghidra address:
PAL: 0x001c0520

◆ GetPanel()

RndMesh * OvyRemixGenPanel::GetPanel ( ) const
inline
Returns
<prefix>_panel.mesh.

Member Data Documentation

◆ kNoFlash

float OvyRemixGenPanel::kNoFlash = -1e9f
staticconstexpr

The value of mFlashTime when no blink runs.

◆ mBackground

RndMesh* OvyRemixGenPanel::mBackground
protected

<prefix>_bg.mesh, the root of the drawing.

◆ mPanel

RndMesh* OvyRemixGenPanel::mPanel
protected

<prefix>_panel.mesh.


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