39 void Load(
const char *pszName);
98 void Enter(
bool bForce,
float fTime)
override;
107 void Poll(
float fTime)
override;
One button or stick of the picture.
Definition controllerpanel.h:30
void SetAnim(RndAnimatable *pAnim)
Definition controllerpanel.h:47
RndAnimatable * GetAnim() const
Definition controllerpanel.h:42
RndDrawable * GetMesh() const
Definition controllerpanel.h:52
void Load(const char *pszName)
Find the animation and the highlight of the region.
void SetMesh(RndDrawable *pMesh)
Definition controllerpanel.h:57
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition controllerpanel.h:86
void SetRegion(int nRegion)
Highlight one region and stop highlighting the previous one.
~ControllerPanel() override=default
Destroy the object.
void Enter(bool bForce, float fTime) override
Find the picture's view and regions, hide every highlight, and enter.
void Poll(float fTime) override
Run the picture's view to the time, then the panel.
static constexpr int kNumRegions
The number of regions, one for each button and stick.
Definition controllerpanel.h:27
ControllerPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqPanel(DataArray *pData, const char *pszDir)
Construct a panel from its script description.
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
Mix-in for an object that draws itself and then a list of other drawables.
Definition rnddrawable.h:16
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.