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

Display of the controller buttons on the screen around a song. More...

#include <controllerdisplay.h>

Public Member Functions

 ControllerDisplay ()
 Construct a hidden display.
void Init ()
 Refresh the display and its button labels.
void Show ()
 Add one request to show the display.
void Hide ()
 Withdraw one request to show the display.
void SetHighlight (bool bHighlight)
 Highlight the buttons of every lane or clear the highlight.
void SetOption (bool bOption)
 Show the display in one of its two modes.
void Clear ()
 Clear the mode, the highlight, and the count.
void RefreshLabels ()
 Refresh the button labels from the first player's controller bindings.

Static Public Member Functions

static ControllerDisplay * shared ()
 Report the display.

Detailed Description

Display of the controller buttons on the screen around a song.

The class is not polymorphic and does not have RTTI. The name is inferred from the button names it shows. Each of the three lanes shows the icon of the controller button it is played with.

Constructor & Destructor Documentation

◆ ControllerDisplay()

ControllerDisplay::ControllerDisplay ( )

Construct a hidden display.

Ghidra address:
NTSC-U/C: 0x0014aee0
Ghidra address:
PAL: 0x0014c880

Member Function Documentation

◆ shared()

ControllerDisplay * ControllerDisplay::shared ( )
static

Report the display.

Returns
The display, constructed on the first call.
Ghidra address:
NTSC-U/C: 0x0014aef8
Ghidra address:
PAL: 0x0014c898

◆ Init()

void ControllerDisplay::Init ( )

Refresh the display and its button labels.

Ghidra address:
NTSC-U/C: 0x0014af40
Ghidra address:
PAL: 0x0014c8e0

◆ Show()

void ControllerDisplay::Show ( )

Add one request to show the display.

Ghidra address:
NTSC-U/C: 0x0014af78
Ghidra address:
PAL: 0x0014c918

◆ Hide()

void ControllerDisplay::Hide ( )

Withdraw one request to show the display.

Ghidra address:
NTSC-U/C: 0x0014afa0
Ghidra address:
PAL: 0x0014c940

◆ SetHighlight()

void ControllerDisplay::SetHighlight ( bool bHighlight)

Highlight the buttons of every lane or clear the highlight.

Parameters
bHighlightWhether the buttons are highlighted.
Ghidra address:
NTSC-U/C: 0x0014afe8
Ghidra address:
PAL: 0x0014c988

◆ SetOption()

void ControllerDisplay::SetOption ( bool bOption)

Show the display in one of its two modes.

Parameters
bOptionThe mode. The buttons are hidden while it is set.
Ghidra address:
NTSC-U/C: 0x0014afc8
Ghidra address:
PAL: 0x0014c968

◆ Clear()

void ControllerDisplay::Clear ( )

Clear the mode, the highlight, and the count.

Ghidra address:
NTSC-U/C: 0x0014b048
Ghidra address:
PAL: 0x0014c9e8

◆ RefreshLabels()

void ControllerDisplay::RefreshLabels ( )

Refresh the button labels from the first player's controller bindings.

The tutorial retains the labels it has.

Ghidra address:
NTSC-U/C: 0x0014b128
Ghidra address:
PAL: 0x0014cac8

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