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

Picture of the controller on the head-up display, with the buttons the tutorial points at. More...

#include <ovycontroller.h>

Inheritance diagram for OvyController:
Collaboration diagram for OvyController:

Classes

struct  Button
 One button of the picture. More...

Public Types

enum  Highlight { kHighlightOff = 0 , kHighlightOn = 1 , kNumHighlights = 2 }
 The materials of the picture, the indices of mMats. More...

Public Member Functions

 OvyController (RndView *pHudView)
 Construct a hidden picture and draw it into the letterboxed view of the head-up display.
 ~OvyController () override=default
 Destroy the picture.
void Reset ()
 Hide the picture and every button at once.
void SetHighlight (bool bHighlight)
 Light or darken the picture.
void ShowButton (int nButton, bool bShow)
 Show or hide a button, and start or stop its animation.
RndAnimatable * GetPosAnim () const
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 Show (bool bShow)
 Slide the panel in or out, or move it at once while sSnap is set.
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.

Static Public Attributes

static constexpr int kNumButtons = 16
 The number of buttons of the picture, one per JoypadButton from kPadL2 to kPadDLeft.
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.

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.
Protected Attributes inherited from HideablePanel
RampAnimator mSlide

Detailed Description

Picture of the controller on the head-up display, with the buttons the tutorial points at.

The RTTI records the class as deriving from HideablePanel. The object is 0xb0 bytes.

Member Enumeration Documentation

◆ Highlight

The materials of the picture, the indices of mMats.

Enumerator
kHighlightOff 

HUD controller map no.mat.

kHighlightOn 

HUD controller map hi.mat.

kNumHighlights 

The number of materials.

Constructor & Destructor Documentation

◆ OvyController()

OvyController::OvyController ( RndView * pHudView)
explicit

Construct a hidden picture and draw it into the letterboxed view of the head-up display.

Parameters
pHudViewThe view of the head-up display.
Ghidra address:
NTSC-U/C: 0x001c01a0
Ghidra address:
PAL: 0x001c8f40

◆ ~OvyController()

OvyController::~OvyController ( )
overridedefault

Destroy the picture.

Ghidra address:
NTSC-U/C: 0x00367488
Ghidra address:
PAL: 0x003d5bb8

Member Function Documentation

◆ Reset()

void OvyController::Reset ( )

Hide the picture and every button at once.

Ghidra address:
NTSC-U/C: 0x001c05d8
Ghidra address:
PAL: 0x001c9378

◆ SetHighlight()

void OvyController::SetHighlight ( bool bHighlight)

Light or darken the picture.

Parameters
bHighlightWhether to light the picture.
Ghidra address:
NTSC-U/C: 0x001c0678
Ghidra address:
PAL: 0x001c9418

◆ ShowButton()

void OvyController::ShowButton ( int nButton,
bool bShow )

Show or hide a button, and start or stop its animation.

Parameters
nButtonThe button, one of JoypadButton.
bShowWhether to show the button.
Ghidra address:
NTSC-U/C: 0x001c06a8
Ghidra address:
PAL: 0x001c9448

◆ GetPosAnim()

RndAnimatable * OvyController::GetPosAnim ( ) const
inline
Returns
HUD controller map pos.tnm.

Member Data Documentation

◆ kNumButtons

int OvyController::kNumButtons = 16
staticconstexpr

The number of buttons of the picture, one per JoypadButton from kPadL2 to kPadDLeft.


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