|
wavelength 1.0.0
|
Label of the instrument of the track the local player is on. More...
#include <ovytracklabel.h>


Public Member Functions | |
| OvyTrackLabel () | |
| Construct a hidden label from HUD track label.tnm, HUD track label.view, HUD track label.txt, and HUD track label.mat. | |
| ~OvyTrackLabel () override=default | |
| Destroy the label. | |
| void | Show (bool bShow) override |
| Record whether the label is wanted, and show it while it has a text. | |
| void | Hide () |
| Empty the label. | |
| void | SetTrack (int nPlayer, int nInstrument, int nTrackKind) |
| Label the track a player moved to, when the player is the one the label follows. | |
| void | UpdateShown () |
| Show the label when it is wanted and has a text. | |
| 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 | 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. | |
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. | |
| 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. | |
| Protected Attributes inherited from HideablePanel | |
| RampAnimator | mSlide |
Label of the instrument of the track the local player is on.
The RTTI records the class as deriving from HideablePanel. The object is 0x30 bytes. The label follows the first local player of the game.
| OvyTrackLabel::OvyTrackLabel | ( | ) |
Construct a hidden label from HUD track label.tnm, HUD track label.view, HUD track label.txt, and HUD track label.mat.
|
overridedefault |
Destroy the label.
|
inlineoverridevirtual |
Record whether the label is wanted, and show it while it has a text.
| bShow | Whether to show the label. |
Reimplemented from HideablePanel.
| void OvyTrackLabel::Hide | ( | ) |
Empty the label.
| void OvyTrackLabel::SetTrack | ( | int | nPlayer, |
| int | nInstrument, | ||
| int | nTrackKind ) |
Label the track a player moved to, when the player is the one the label follows.
Tracks of kind 2, 4, and 5 show the name of their instrument. Others empty the label.
| nPlayer | The player. |
| nInstrument | The instrument of the track, one of GfxManager::Instrument. |
| nTrackKind | The kind of the track. |
| void OvyTrackLabel::UpdateShown | ( | ) |
Show the label when it is wanted and has a text.