metaforce/Runtime/GuiSys/CHudBossEnergyInterface.hpp

31 lines
801 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2017-04-02 03:03:37 +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;
class CGuiFrame;
2017-04-04 05:48:13 +00:00
class CGuiTextPane;
class CGuiWidget;
2017-04-02 03:03:37 +00:00
2018-12-08 05:30:43 +00:00
class CHudBossEnergyInterface {
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;
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:
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