2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2017-04-01 20:03:37 -07:00
|
|
|
|
2019-09-22 14:52:05 -07:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2017-04-03 22:48:13 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2017-04-03 22:48:13 -07:00
|
|
|
class CAuiEnergyBarT01;
|
2019-09-22 14:52:05 -07:00
|
|
|
class CGuiFrame;
|
2017-04-03 22:48:13 -07:00
|
|
|
class CGuiTextPane;
|
2019-09-22 14:52:05 -07:00
|
|
|
class CGuiWidget;
|
2017-04-01 20:03:37 -07:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
class CHudBossEnergyInterface {
|
2020-04-13 12:00:42 -07:00
|
|
|
float x0_alpha = 0.f;
|
2018-12-07 21:30:43 -08:00
|
|
|
float x4_fader = 0.f;
|
|
|
|
float x8_curEnergy = 0.f;
|
|
|
|
float xc_maxEnergy = 0.f;
|
2020-04-19 21:57:50 -07:00
|
|
|
bool x10_24_visible : 1 = false;
|
2018-12-07 21:30:43 -08:00
|
|
|
CGuiWidget* x14_basewidget_bossenergystuff;
|
|
|
|
CAuiEnergyBarT01* x18_energybart01_bossbar;
|
|
|
|
CGuiTextPane* x1c_textpane_boss;
|
|
|
|
|
2017-04-02 18:39:23 -07:00
|
|
|
public:
|
2020-03-25 18:25:11 -07:00
|
|
|
explicit CHudBossEnergyInterface(CGuiFrame& selHud);
|
2018-12-07 21:30:43 -08: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-01 20:03:37 -07:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|