Part of the head-up display that slides in and out of view.
More...
#include <hideablepanel.h>
|
| | 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 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.
|
Part of the head-up display that slides in and out of view.
The RTTI records the class in an anonymous namespace of the overlay's translation unit, with no base. The object is 0x1c bytes. An animation runs from frame 0 (hidden) to frame 240 (shown), and the drawable shows while the frame is not 0.
◆ HideablePanel()
| HideablePanel::HideablePanel |
( |
const char * | pszAnim, |
|
|
const char * | pszDrawable, |
|
|
bool | bShown ) |
Construct a panel and find its animation and drawable.
- Parameters
-
| pszAnim | The animation that slides the panel, or null. |
| pszDrawable | The drawable shown with the panel, or null. |
| bShown | Whether the panel starts shown. |
- Ghidra address:
- NTSC-U/C: 0x001b65e8
- Ghidra address:
- PAL: 0x001bf388
◆ ~HideablePanel()
| virtual HideablePanel::~HideablePanel |
( |
| ) |
|
|
virtualdefault |
Destroy the panel.
- Ghidra address:
- NTSC-U/C: 0x00366d00
- Ghidra address:
- PAL: 0x003d5430
◆ Show()
| virtual void HideablePanel::Show |
( |
bool | bShow | ) |
|
|
virtual |
Slide the panel in or out, or move it at once while sSnap is set.
- Parameters
-
| bShow | Whether to show the panel. |
- Ghidra address:
- NTSC-U/C: 0x001b6778
- Ghidra address:
- PAL: 0x001bf518
Reimplemented in OvyAvatar, OvyJuice, OvyScore, and OvyTrackLabel.
◆ ShowNow()
| virtual void HideablePanel::ShowNow |
( |
bool | bShow | ) |
|
|
virtual |
Show or hide the panel at once.
- Parameters
-
| bShow | Whether to show the panel. |
- Ghidra address:
- NTSC-U/C: 0x001b67d8
- Ghidra address:
- PAL: 0x001bf578
◆ SetObjects()
| void HideablePanel::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.
- Parameters
-
| pszAnim | The animation that slides the panel, or null to retain the current one. |
| pszDrawable | The drawable shown with the panel, or null to retain the current one. |
| bShown | Whether the panel is shown. |
- Ghidra address:
- NTSC-U/C: 0x001b6670
- Ghidra address:
- PAL: 0x001bf410
◆ Poll()
| void HideablePanel::Poll |
( |
| ) |
|
Advance the slide by sDeltaTime, and show the drawable while the panel is not hidden.
- Ghidra address:
- NTSC-U/C: 0x001b6808
- Ghidra address:
- PAL: 0x001bf5a8
◆ ClearSnap()
| void HideablePanel::ClearSnap |
( |
| ) |
|
|
static |
Clear sSnap.
- Ghidra address:
- NTSC-U/C: 0x001b65c8
- Ghidra address:
- PAL: 0x001bf368
◆ SetDeltaTime()
| void HideablePanel::SetDeltaTime |
( |
float | fDeltaTime | ) |
|
|
static |
Set the time the next Poll() of every panel advances by.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x001b65d8
- Ghidra address:
- PAL: 0x001bf378
◆ Init()
| void HideablePanel::Init |
( |
| ) |
|
|
static |
Find the animation of the two-dimensional materials and the frame it rests at.
The frame is enter_stop_frame of the panel_enter_exit entry of the ui section of the configuration, when the section exists. Clears sSnap.
- Ghidra address:
- NTSC-U/C: 0x001b6878
- Ghidra address:
- PAL: 0x001bf618
◆ Terminate()
| void HideablePanel::Terminate |
( |
| ) |
|
|
static |
Forget the animation of the two-dimensional materials.
- Ghidra address:
- NTSC-U/C: 0x001b6940
- Ghidra address:
- PAL: 0x001bf6e0
◆ PoseMaterials()
| void HideablePanel::PoseMaterials |
( |
| ) |
|
|
static |
Pose the animation of the two-dimensional materials at its resting frame.
- Ghidra address:
- NTSC-U/C: 0x001b6950
- Ghidra address:
- PAL: 0x001bf6f0
◆ kShownFrame
| float HideablePanel::kShownFrame = 240.0f |
|
staticconstexpr |
The frame of the animation at which the panel is fully shown.
◆ sSnap
Whether Show() moves a panel at once rather than sliding it.
- Ghidra address:
- NTSC-U/C: 0x003af908
- Ghidra address:
- PAL: 0x0042e79c
◆ sDeltaTime
| float HideablePanel::sDeltaTime |
|
static |
The time Poll() advances every panel by.
- Ghidra address:
- NTSC-U/C: 0x003af90c
- Ghidra address:
- PAL: 0x0042e7a0
◆ sMaterialAnim
The animation of the two-dimensional materials, mat_2d_EE.anim, or null.
- Ghidra address:
- NTSC-U/C: 0x003af910
- Ghidra address:
- PAL: 0x0042e7a4
◆ sMaterialFrame
| float HideablePanel::sMaterialFrame |
|
static |
The frame PoseMaterials() poses sMaterialAnim at.
- Ghidra address:
- NTSC-U/C: 0x003af914
- Ghidra address:
- PAL: 0x0042e7a8
◆ mSlide
The slide, from 0 (hidden) to kShownFrame (shown).
The documentation for this class was generated from the following file: