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/CMatrix3f.hpp>
|
2017-04-04 05:48:13 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2019-09-22 21:52:05 +00:00
|
|
|
class CGuiCamera;
|
2017-04-02 03:03:37 +00:00
|
|
|
class CGuiFrame;
|
2017-04-04 05:48:13 +00:00
|
|
|
class CGuiWidget;
|
2017-04-02 03:03:37 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CHudHelmetInterface {
|
|
|
|
zeus::CMatrix3f x0_hudLagRotation;
|
|
|
|
zeus::CVector3f x24_pivotPosition;
|
|
|
|
zeus::CVector3f x30_hudLagPosition;
|
2020-04-20 04:57:50 +00:00
|
|
|
bool x3c_24_helmetVisibleDebug : 1 = true;
|
|
|
|
bool x3c_25_helmetVisibleGame : 1 = true;
|
|
|
|
bool x3c_26_glowVisibleDebug : 1 = true;
|
|
|
|
bool x3c_27_glowVisibleGame : 1 = true;
|
|
|
|
bool x3c_28_hudLagDirty : 1 = false;
|
2018-12-08 05:30:43 +00:00
|
|
|
CGuiCamera* x40_camera;
|
|
|
|
CGuiWidget* x44_BaseWidget_Pivot;
|
|
|
|
CGuiWidget* x48_BaseWidget_Helmet;
|
|
|
|
CGuiWidget* x4c_BaseWidget_Glow;
|
|
|
|
CGuiWidget* x50_BaseWidget_HelmetLight;
|
|
|
|
void UpdateVisibility();
|
|
|
|
|
2017-04-02 03:03:37 +00:00
|
|
|
public:
|
2020-03-26 01:25:11 +00:00
|
|
|
explicit CHudHelmetInterface(CGuiFrame& helmetFrame);
|
2018-12-08 05:30:43 +00:00
|
|
|
void Update(float dt);
|
|
|
|
void SetHudLagOffset(const zeus::CVector3f& off);
|
|
|
|
void SetHudLagRotation(const zeus::CMatrix3f& rot);
|
|
|
|
void AddHelmetLightValue(float val);
|
|
|
|
void UpdateCameraDebugSettings(float fov, float y, float z);
|
|
|
|
void UpdateHelmetAlpha();
|
|
|
|
void SetIsVisibleDebug(bool helmet, bool glow);
|
2017-04-02 03:03:37 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|