88 void Enter(
bool bForce,
float fTime)
override;
98 void Exit(
bool bForce,
float fTime)
override;
115 void Poll(
float fTime)
override;
195 static const char *sPanelAnimName;
203 static float sMatEnterStart;
211 static float sMatEnterStop;
219 static float sMatExitStart;
227 static float sMatExitStop;
231 int mGizmoOffsetIndex;
Axis-aligned bounding box.
Definition box.h:12
Reference-counted array of script data nodes.
Definition dataarray.h:20
void Exit(bool bForce, float fTime) override
Start the exit animation and the exit of the panel material animation.
void Unload() override
Drop a reference to the panel's file, forgetting the meshes and the animation on the last reference.
void Poll(float fTime) override
Advance the panel to a time and move the panel animation to the panel's frame.
void DrawGizmo() override
Stretch the gizmo pyramid from the background mesh to the gizmo and draw it.
Box mBgBox
Definition freqpanel.h:186
static void Init(DataArray *pConfig)
Read the freq_panel section of the metagame configuration.
void Draw() override
Move the panel material animations to the front-end time and draw the panel.
void FinishLoad() override
Find the meshes and animations of the panel once its file has loaded.
void SetShowing(bool bShowing) override
Show or hide the panel's view and the gizmo pyramid.
static Vector3 sGizmoOffsets[kNumGizmoOffsets]
The points of the gizmo the pyramids reach, the panel_gizmo_offset_1 to _3 settings.
Definition freqpanel.h:184
FreqPanel(DataArray *pData, const char *pszDir)
Construct a panel from its script description.
static Vector3 sGizmoOrigPos
The position of the gizmo, the panel_gizmo_orig_pos setting.
Definition freqpanel.h:177
void Enter(bool bForce, float fTime) override
Start the entry animation and the entry of the panel material animation.
void UpdateBgBox()
Measure the background mesh into mBgBox.
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition freqpanel.h:58
void ShowGizmoMesh(bool bShowing)
Show or hide the gizmo pyramid.
void SetFocus(UIComponent *pComponent, int nButton) override
Move the focus to a component and play the sound of the directional button that moved it.
static constexpr int kNumGizmoOffsets
The number of gizmo offsets the configuration provides.
Definition freqpanel.h:27
~FreqPanel() override
Destroy the panel.
Triangle mesh with a material.
Definition rndmesh.h:31
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
One control of a front-end panel, such as a label, a button, or a list.
Definition uicomponent.h:21
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14