2017-04-02 03:03:37 +00:00
|
|
|
#ifndef __URDE_CHUDBOSSENERGYINTERFACE_HPP__
|
|
|
|
#define __URDE_CHUDBOSSENERGYINTERFACE_HPP__
|
|
|
|
|
2017-04-04 05:48:13 +00:00
|
|
|
#include "RetroTypes.hpp"
|
2017-10-25 07:47:49 +00:00
|
|
|
#include "zeus/CVector3f.hpp"
|
2017-04-04 05:48:13 +00:00
|
|
|
|
2017-04-02 03:03:37 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
2017-04-04 05:48:13 +00:00
|
|
|
class CGuiFrame;
|
|
|
|
class CGuiWidget;
|
|
|
|
class CAuiEnergyBarT01;
|
|
|
|
class CGuiTextPane;
|
2017-04-02 03:03:37 +00:00
|
|
|
|
|
|
|
class CHudBossEnergyInterface
|
|
|
|
{
|
2017-04-03 01:39:23 +00:00
|
|
|
float x0_alpha;
|
2017-04-04 05:48:13 +00:00
|
|
|
float x4_fader = 0.f;
|
|
|
|
float x8_curEnergy = 0.f;
|
|
|
|
float xc_maxEnergy = 0.f;
|
|
|
|
bool x10_24_visible : 1;
|
|
|
|
CGuiWidget* x14_basewidget_bossenergystuff;
|
|
|
|
CAuiEnergyBarT01* x18_energybart01_bossbar;
|
|
|
|
CGuiTextPane* x1c_textpane_boss;
|
2017-04-03 01:39:23 +00:00
|
|
|
public:
|
2017-04-04 05:48:13 +00:00
|
|
|
CHudBossEnergyInterface(CGuiFrame& selHud);
|
2017-04-03 01:39:23 +00:00
|
|
|
void Update(float dt);
|
2017-04-04 05:48:13 +00:00
|
|
|
void SetAlpha(float a) { x0_alpha = a; }
|
2017-11-13 06:19:18 +00:00
|
|
|
void SetBossParams(bool visible, std::u16string_view name,
|
2017-04-04 05:48:13 +00:00
|
|
|
float curEnergy, float maxEnergy);
|
|
|
|
static std::pair<zeus::CVector3f, zeus::CVector3f> BossEnergyCoordFunc(float t);
|
2017-04-02 03:03:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CHUDBOSSENERGYINTERFACE_HPP__
|