List of labelled options on the remix head-up display, one of which a cursor selects.
More...
#include <ovyremixgenpanel.h>
|
| struct | Option |
| | One option: the mesh behind it and its label. More...
|
|
| | 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 constexpr float | kNoFlash = -1e9f |
| | The value of mFlashTime when no blink runs.
|
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.
◆ 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.
|
◆ 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
◆ Poll()
| virtual void OvyRemixGenPanel::Poll |
( |
float | fDelta | ) |
|
|
virtual |
Blink the cursor of the selected option for 179 ticks after Flash().
- Parameters
-
| fDelta | The 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 |
◆ 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
-
| chHud | The letter of the head-up display layout. |
| pszPrefix | The prefix of the scene objects. |
| nPlayer | The player. The clones are named for it. |
| pParent | The 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
-
| pszName | The object. |
| nPlayer | The 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
-
| nIndex | The option. |
| pszText | The 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
-
| nIndex | The 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
-
| nIndex | The option. |
| bLit | Whether 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.
◆ 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
The documentation for this class was generated from the following file: