resonance 1.0.1
Loading...
Searching...
No Matches
HudAnalogStick Class Reference

Analog stick prompt of the head-up display. More...

#include <hudanalogstick.h>

Public Member Functions

 HudAnalogStick ()
 Resolve the prompt's mesh and both materials, and hide the prompt.
void SetMotion (const HxStr &motion)
 Put the material for one stick motion on the prompt.
void SetShowing (int nShowing)
 Show or hide the prompt.

Detailed Description

Analog stick prompt of the head-up display.

The class is not polymorphic and emits no RTTI. No descriptor, tag, or file path identifies it, and its name is inferred from the analog_stick objects it resolves. The head-up display panel embeds one at +0x104.

The prompt is one mesh that shows one of two materials, the in-and-out stick or the up-and-down stick.

Constructor & Destructor Documentation

◆ HudAnalogStick()

HudAnalogStick::HudAnalogStick ( )

Resolve the prompt's mesh and both materials, and hide the prompt.

Ghidra address:
NTSC-U/C: 0x00417840
Ghidra address:
PAL: 0x00451628

Member Function Documentation

◆ SetMotion()

void HudAnalogStick::SetMotion ( const HxStr & motion)

Put the material for one stick motion on the prompt.

in_out selects HUD in_out_stick.mat and up_down selects HUD up_down_stick.mat. Any other text changes nothing. The stick-material script command calls it. The title is inferred.

Parameters
motionThe motion.
Ghidra address:
NTSC-U/C: 0x00429d60
Ghidra address:
PAL: 0x004653a0

◆ SetShowing()

void HudAnalogStick::SetShowing ( int nShowing)

Show or hide the prompt.

The constructor is the one caller. The title is inferred.

Parameters
nShowingNon-zero to show.
Ghidra address:
NTSC-U/C: 0x00429dd8
Ghidra address:
PAL: 0x00465418

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