61 virtual void Poll(
float fDelta);
108 void SetText(
int nIndex,
const char *pszText);
147 std::vector<Option> mOptions;
148 std::list<RndObject *> mClones;
virtual ~OvyRemixGenPanel()
Destroy the panel and the objects it cloned.
RndMesh * mPanel
Definition ovyremixgenpanel.h:144
virtual void Draw()
Draw the panel.
RndMesh * mBackground
Definition ovyremixgenpanel.h:143
void Select(int nIndex)
Move the cursor to an option.
static constexpr float kNoFlash
The value of mFlashTime when no blink runs.
Definition ovyremixgenpanel.h:36
RndMesh * GetPanel() const
Definition ovyremixgenpanel.h:138
virtual void Poll(float fDelta)
Blink the cursor of the selected option for 179 ticks after Flash().
FontIndex
The indices of mFonts.
Definition ovyremixgenpanel.h:29
@ kFontNormal
Definition ovyremixgenpanel.h:30
@ kNumFonts
Definition ovyremixgenpanel.h:32
@ kFontSelected
Definition ovyremixgenpanel.h:31
void SetLit(int nIndex, bool bLit)
Draw the label of an option in the selected font or the normal one.
void Load(char chHud, const char *pszPrefix, int nPlayer, RndTransformable *pParent)
Clone the panel's objects from the loaded scene and build its options.
RndObject * Clone(const char *pszName, int nPlayer)
Clone one object of the loaded scene as <name> pl <player>, and own the clone.
void Flash()
Start blinking the cursor of the selected option, when there is one.
void SetText(int nIndex, const char *pszText)
Set the label of an option.
OvyRemixGenPanel()
Construct an empty panel.
Bitmap font, a grid of character cells in the texture of a material's first stage.
Definition rndfont.h:20
Surface description: blending, lighting colours, culling, and a list of texture stages.
Definition rndmat.h:20
Triangle mesh with a material.
Definition rndmesh.h:31
Base of every object the renderer can load, resolve by name, and serialise.
Definition rndobject.h:20
Text drawn with a bitmap font as a mesh of one quad per character.
Definition rndtext.h:27
One option: the mesh behind it and its label.
Definition ovyremixgenpanel.h:23
RndText * mText
Definition ovyremixgenpanel.h:25
RndMesh * mMesh
Definition ovyremixgenpanel.h:24