wavelength 1.0.0
Loading...
Searching...
No Matches
ovysectionpanel.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "app/hideablepanel.h"
6#include "os/string.h"
7#include "rnd/rnddrawable.h"
8#include "rnd/rndmat.h"
9#include "rnd/rndmesh.h"
10#include "rnd/rndtext.h"
12
20public:
27
41 OvySectionPanel(char chHud, const String &prefix, RndTransformable *pParent);
42
49 ~OvySectionPanel() override;
50
57 void Poll();
58
65 void Draw();
66
74 void SetSectionCount(int nCount);
75
84 void SetSectionLabel(int nIndex, const char *pszLabel);
85
93 void HighlightSection(int nIndex);
94
95private:
96 std::vector<String> mUnused;
97 std::vector<Section> mSections;
98 RndMat *mCursorOffMat;
99 RndMat *mCursorOnMat;
100 RndDrawable *mBackground;
101 RndTransformable *mPanel;
102 char mHud;
103};
HideablePanel(const char *pszAnim, const char *pszDrawable, bool bShown)
Construct a panel and find its animation and drawable.
OvySectionPanel(char chHud, const String &prefix, RndTransformable *pParent)
Construct a hidden list and find its scene objects.
void HighlightSection(int nIndex)
Light the entry of a section, or show its label in the shared-screen layout.
void SetSectionCount(int nCount)
Show one blank entry per section and hide the rest.
void Poll()
Advance the slide.
void SetSectionLabel(int nIndex, const char *pszLabel)
Set the label of a section.
~OvySectionPanel() override
Destroy the list.
void Draw()
Draw the list while it is not hidden.
Mix-in for an object that draws itself and then a list of other drawables.
Definition rnddrawable.h:16
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
Text drawn with a bitmap font as a mesh of one quad per character.
Definition rndtext.h:27
Mix-in for an object with a local transform and a world transform derived from its parent's.
Definition rndtransformable.h:17
Growable text buffer that is also a PrnStream.
Definition string.h:19
One section entry.
Definition ovysectionpanel.h:22
RndMesh * mMesh
Definition ovysectionpanel.h:25
String mLabel
Definition ovysectionpanel.h:23
RndText * mText
Definition ovysectionpanel.h:24