wavelength 1.0.0
Loading...
Searching...
No Matches
ovytracklabel.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/hideablepanel.h"
4#include "rnd/rndmat.h"
5#include "rnd/rndtext.h"
6
14public:
23
30 ~OvyTrackLabel() override = default;
31
39 void Show(bool bShow) override {
40 mWanted = bShow;
42 }
43
50 void Hide();
51
63 void SetTrack(int nPlayer, int nInstrument, int nTrackKind);
64
72
73private:
74 int mWanted;
75 int mHasText;
76 int mPlayer;
77 RndText *mText;
78 RndMat *mMat;
79};
HideablePanel(const char *pszAnim, const char *pszDrawable, bool bShown)
Construct a panel and find its animation and drawable.
OvyTrackLabel()
Construct a hidden label from HUD track label.tnm, HUD track label.view, HUD track label....
void Hide()
Empty the label.
~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.
Definition ovytracklabel.h:39
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.
Surface description: blending, lighting colours, culling, and a list of texture stages.
Definition rndmat.h:20
Text drawn with a bitmap font as a mesh of one quad per character.
Definition rndtext.h:27