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

Effect panel of the remix head-up display, which slides out of the main panel. More...

#include <ovyremixsubpanel.h>

Inheritance diagram for OvyRemixSubPanel:
Collaboration diagram for OvyRemixSubPanel:

Public Member Functions

 OvyRemixSubPanel (int nType, char chHud, int nPlayer)
 Construct a hidden panel of one type.
 ~OvyRemixSubPanel () override
 Destroy the panel.
void Poll (float fDelta) override
 Advance the slide, show the panel while it is out, and blink the cursor.
void Draw () override
 Draw the panel.
void Show (bool bShow)
 Slide the panel out or back.
bool IsType (int nType) const
 Report whether the panel is of a type.
const RampAnimator & GetSlide () const
Public Member Functions inherited from OvyRemixGenPanel
 OvyRemixGenPanel ()
 Construct an empty panel.
virtual ~OvyRemixGenPanel ()
 Destroy the panel and the objects it cloned.
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 kHiddenFrame = 240.0f
 The frame of the slide at which the panel is hidden behind the main panel.
static constexpr float kShownFrame = 360.0f
 The frame of the slide at which the panel is fully out.
Static Public Attributes inherited from OvyRemixGenPanel
static constexpr float kNoFlash = -1e9f
 The value of mFlashTime when no blink runs.

Additional Inherited Members

Public Types inherited from OvyRemixGenPanel
enum  FontIndex { kFontNormal = 0 , kFontSelected = 1 , kNumFonts = 2 }
 The indices of mFonts. More...
Protected Attributes inherited from OvyRemixGenPanel
RndMesh * mBackground
RndMesh * mPanel

Detailed Description

Effect panel of the remix head-up display, which slides out of the main panel.

The RTTI records the class as deriving from OvyRemixGenPanel. The object is 0x60 bytes.

Constructor & Destructor Documentation

◆ OvyRemixSubPanel()

OvyRemixSubPanel::OvyRemixSubPanel ( int nType,
char chHud,
int nPlayer )

Construct a hidden panel of one type.

The scene objects are HUD<hud>r_fxs_<name>, where the name is pat, chs, stt, eco, bot, or bpm for the types 1 to 6, and the slide is HUD<hud>r_fxs.tnm.

Parameters
nTypeThe type, one of GfxManager::RemixSubPanel other than the main panel.
chHudThe letter of the head-up display layout.
nPlayerThe player.
Ghidra address:
NTSC-U/C: 0x001b77d0
Ghidra address:
PAL: 0x001c0570

◆ ~OvyRemixSubPanel()

OvyRemixSubPanel::~OvyRemixSubPanel ( )
override

Destroy the panel.

Ghidra address:
NTSC-U/C: 0x001b7a00
Ghidra address:
PAL: 0x001c07a0

Member Function Documentation

◆ Poll()

void OvyRemixSubPanel::Poll ( float fDelta)
overridevirtual

Advance the slide, show the panel while it is out, and blink the cursor.

Parameters
fDeltaThe time since the last poll.
Ghidra address:
NTSC-U/C: 0x001b7a88
Ghidra address:
PAL: 0x001c0828

Reimplemented from OvyRemixGenPanel.

◆ Draw()

void OvyRemixSubPanel::Draw ( )
overridevirtual

Draw the panel.

Ghidra address:
NTSC-U/C: 0x001b7b10
Ghidra address:
PAL: 0x001c08b0

Reimplemented from OvyRemixGenPanel.

◆ Show()

void OvyRemixSubPanel::Show ( bool bShow)

Slide the panel out or back.

Parameters
bShowWhether to slide the panel out.
Ghidra address:
NTSC-U/C: 0x001b7a50
Ghidra address:
PAL: 0x001c07f0

◆ IsType()

bool OvyRemixSubPanel::IsType ( int nType) const

Report whether the panel is of a type.

Parameters
nTypeThe type.
Returns
Whether mType is nType.
Ghidra address:
NTSC-U/C: 0x001b7b30
Ghidra address:
PAL: 0x001c08d0

◆ GetSlide()

const RampAnimator & OvyRemixSubPanel::GetSlide ( ) const
inline
Returns
The slide, from kHiddenFrame to kShownFrame.

Member Data Documentation

◆ kHiddenFrame

float OvyRemixSubPanel::kHiddenFrame = 240.0f
staticconstexpr

The frame of the slide at which the panel is hidden behind the main panel.

◆ kShownFrame

float OvyRemixSubPanel::kShownFrame = 360.0f
staticconstexpr

The frame of the slide at which the panel is fully out.


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