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

Marker on the controller stick diagram of the head-up display, which the tutorial moves. More...

#include <hudstick.h>

Public Types

enum  Direction { kDirectionInOut = 0 , kDirectionUpDown = 1 , kNumDirections = 2 }
 The materials of the marker, the indices of mMats. More...

Public Member Functions

 HudStick (char chHud, RndAnimatable *pAnims, RndView *pParent)
 Construct a hidden marker.
void Reset ()
 Hide the marker.
void Hide ()
 Hide the marker.
void Show (int nDirection, const Vector2 *pPosition)
 Show the marker at a place on the diagram with one of its materials.
RndMesh * GetMesh () const

Detailed Description

Marker on the controller stick diagram of the head-up display, which the tutorial moves.

The class is not polymorphic and emits no RTTI. The object is 0xc bytes. The title is inferred from the gfx_stick_diagram script command that drives it.

Member Enumeration Documentation

◆ Direction

The materials of the marker, the indices of mMats.

Enumerator
kDirectionInOut 

HUD in_out.mat, for a push in or out.

kDirectionUpDown 

HUD up_dn.mat, for a push up or down.

kNumDirections 

The number of materials.

Constructor & Destructor Documentation

◆ HudStick()

HudStick::HudStick ( char chHud,
RndAnimatable * pAnims,
RndView * pParent )

Construct a hidden marker.

The marker is HUD<hud>r_stick.mesh. The material animations HUD in_out.mnm and HUD up_dn.mnm join pAnims.

Parameters
chHudThe letter of the head-up display layout.
pAnimsThe animation the material animations join.
pParentThe view the marker moves with.
Ghidra address:
NTSC-U/C: 0x001b8f20
Ghidra address:
PAL: 0x001c1cc0

Member Function Documentation

◆ Reset()

void HudStick::Reset ( )

Hide the marker.

Ghidra address:
NTSC-U/C: 0x001b9158
Ghidra address:
PAL: 0x001c1ef8

◆ Hide()

void HudStick::Hide ( )

Hide the marker.

Ghidra address:
NTSC-U/C: 0x001b9178
Ghidra address:
PAL: 0x001c1f18

◆ Show()

void HudStick::Show ( int nDirection,
const Vector2 * pPosition )

Show the marker at a place on the diagram with one of its materials.

Parameters
nDirectionThe material, one of Direction.
pPositionThe place, as x and z on the diagram.
Ghidra address:
NTSC-U/C: 0x001b91a8
Ghidra address:
PAL: 0x001c1f48

◆ GetMesh()

RndMesh * HudStick::GetMesh ( ) const
inline
Returns
The marker.

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