2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-04-02 03:03:37 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2017-04-04 05:48:13 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2017-04-04 05:48:13 +00:00
|
|
|
class CAuiEnergyBarT01;
|
2019-09-22 21:52:05 +00:00
|
|
|
class CGuiFrame;
|
2017-04-04 05:48:13 +00:00
|
|
|
class CGuiTextPane;
|
2019-09-22 21:52:05 +00:00
|
|
|
class CGuiWidget;
|
2017-04-02 03:03:37 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CHudBossEnergyInterface {
|
2020-04-13 19:00:42 +00:00
|
|
|
float x0_alpha = 0.f;
|
2018-12-08 05:30:43 +00:00
|
|
|
float x4_fader = 0.f;
|
|
|
|
float x8_curEnergy = 0.f;
|
|
|
|
float xc_maxEnergy = 0.f;
|
2020-04-20 04:57:50 +00:00
|
|
|
bool x10_24_visible : 1 = false;
|
2018-12-08 05:30:43 +00:00
|
|
|
CGuiWidget* x14_basewidget_bossenergystuff;
|
|
|
|
CAuiEnergyBarT01* x18_energybart01_bossbar;
|
|
|
|
CGuiTextPane* x1c_textpane_boss;
|
|
|
|
|
2017-04-03 01:39:23 +00:00
|
|
|
public:
|
2020-03-26 01:25:11 +00:00
|
|
|
explicit CHudBossEnergyInterface(CGuiFrame& selHud);
|
2018-12-08 05:30:43 +00:00
|
|
|
void Update(float dt);
|
|
|
|
void SetAlpha(float a) { x0_alpha = a; }
|
|
|
|
void SetBossParams(bool visible, std::u16string_view name, float curEnergy, float maxEnergy);
|
|
|
|
static std::pair<zeus::CVector3f, zeus::CVector3f> BossEnergyCoordFunc(float t);
|
2017-04-02 03:03:37 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|