wavelength 1.0.0
Loading...
Searching...
No Matches
sololosetipspanel.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqpanel.h"
5#include "script/dataarray.h"
6#include "ui/uicomponent.h"
7#include "ui/uipanel.h"
8
17public:
26 SoloLoseTipsPanel(DataArray *pData, const char *pszDir);
27
34 ~SoloLoseTipsPanel() override {
35 }
36
46 static UIPanel *New(DataArray *pData, const char *pszDir) {
47 return new SoloLoseTipsPanel(pData, pszDir);
48 }
49
56 void Unload() override;
57
66 void Enter(bool bForce, float fTime) override;
67
75 void Poll(float fTime) override;
76
77private:
88 const char *PickTip(DataArray *pTips);
89
101 const char *PickFillerTip(DataArray *pFiller, int nSkillLevel);
102
116 const char *PickProgressTip(DataArray *pEntry, int nSkillLevel, float fProgress);
117
129 bool IsTipAvailable(DataArray *pTip, int nSkillLevel);
130
131 int mProgressTipNext;
132 ViewAnimPlayer mTipAnim;
133 UIComponent *mTip;
134};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqPanel(DataArray *pData, const char *pszDir)
Construct a panel from its script description.
SoloLoseTipsPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition sololosetipspanel.h:46
void Enter(bool bForce, float fTime) override
Choose a tip, start its view after the entry, and enter with the tip hidden.
~SoloLoseTipsPanel() override
Destroy the panel.
Definition sololosetipspanel.h:34
void Unload() override
Unload the panel and drop the view of the tip.
void Poll(float fTime) override
Advance the view of the tip, and show the tip once the panel shows and the view ends.
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.
Player of the entry animation of a view, which loops the cursor sound while a cursor of the animation...
Definition viewanimplayer.h:12