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 "Runtime/GuiSys/CHudInterface.hpp"
|
|
|
|
#include <zeus/CTransform.hpp>
|
2017-04-06 22:35:09 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2019-09-22 14:52:05 -07:00
|
|
|
class CAuiEnergyBarT01;
|
2017-04-01 20:03:37 -07:00
|
|
|
class CGuiFrame;
|
2017-04-06 22:35:09 -07:00
|
|
|
class CGuiModel;
|
|
|
|
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 CHudThreatInterface {
|
|
|
|
enum class EThreatStatus { Normal, Warning, Damage };
|
|
|
|
|
|
|
|
EHudType x4_hudType;
|
|
|
|
float x8_damagePulseTimer = 0.f;
|
|
|
|
float xc_damagePulse = 0.f;
|
|
|
|
float x10_threatDist;
|
|
|
|
float x14_arrowTimer = 0.f;
|
|
|
|
zeus::CTransform x18_threatIconXf;
|
|
|
|
float x48_warningLerpAlpha = 0.f;
|
|
|
|
EThreatStatus x4c_threatStatus = EThreatStatus::Normal;
|
|
|
|
float x50_warningColorLerp = 0.f;
|
2020-04-19 21:57:50 -07:00
|
|
|
bool x54_24_visibleDebug : 1 = true;
|
|
|
|
bool x54_25_visibleGame : 1 = true;
|
2018-12-07 21:30:43 -08:00
|
|
|
bool x54_26_hasArrows : 1;
|
|
|
|
bool x54_27_notXRay : 1;
|
|
|
|
CGuiWidget* x58_basewidget_threatstuff;
|
|
|
|
CGuiWidget* x5c_basewidget_threaticon;
|
|
|
|
CGuiModel* x60_model_threatarrowup;
|
|
|
|
CGuiModel* x64_model_threatarrowdown;
|
|
|
|
CGuiTextPane* x68_textpane_threatwarning;
|
|
|
|
CAuiEnergyBarT01* x6c_energybart01_threatbar;
|
|
|
|
CGuiTextPane* x70_textpane_threatdigits;
|
|
|
|
void UpdateVisibility();
|
2017-04-01 20:03:37 -07:00
|
|
|
|
|
|
|
public:
|
2018-12-07 21:30:43 -08:00
|
|
|
CHudThreatInterface(CGuiFrame& selHud, EHudType hudType, float threatDist);
|
|
|
|
void SetThreatDistance(float threatDist);
|
|
|
|
void SetIsVisibleDebug(bool v);
|
|
|
|
void SetIsVisibleGame(bool v);
|
|
|
|
void Update(float dt);
|
|
|
|
static std::pair<zeus::CVector3f, zeus::CVector3f> CombatThreatBarCoordFunc(float t);
|
|
|
|
static std::pair<zeus::CVector3f, zeus::CVector3f> XRayThreatBarCoordFunc(float t);
|
|
|
|
static std::pair<zeus::CVector3f, zeus::CVector3f> ThermalThreatBarCoordFunc(float t);
|
2017-04-01 20:03:37 -07:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|