2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-04-02 03:03:37 +00:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
2017-10-25 07:47:49 +00:00
|
|
|
#include <cfloat>
|
2017-04-02 03:03:37 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CGuiFrame;
|
2017-04-08 20:40:36 +00:00
|
|
|
class CGuiWidget;
|
|
|
|
class CGuiTextPane;
|
|
|
|
class CGuiModel;
|
2017-04-02 03:03:37 +00:00
|
|
|
|
|
|
|
class CHudVisorBeamMenu
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum class EHudVisorBeamMenu
|
|
|
|
{
|
|
|
|
Visor,
|
|
|
|
Beam
|
|
|
|
};
|
|
|
|
private:
|
2017-04-08 20:40:36 +00:00
|
|
|
struct SMenuItem
|
|
|
|
{
|
|
|
|
CGuiModel* x0_model_loz = nullptr;
|
|
|
|
CGuiModel* x4_model_icon = nullptr;
|
|
|
|
float x8_positioner = 0.f;
|
|
|
|
float xc_opacity = 0.f;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class EAnimPhase
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Steady,
|
|
|
|
SelectFlash,
|
|
|
|
Animate
|
|
|
|
};
|
|
|
|
|
|
|
|
CGuiFrame& x0_baseHud;
|
|
|
|
EHudVisorBeamMenu x4_type;
|
2017-08-31 02:42:37 +00:00
|
|
|
int x8_selectedItem = 0;
|
|
|
|
int xc_pendingSelection = 0;
|
2017-04-08 20:40:36 +00:00
|
|
|
float x10_interp = 1.f;
|
|
|
|
bool x14_24_visibleDebug : 1;
|
|
|
|
bool x14_25_visibleGame : 1;
|
|
|
|
bool x14_26_dirty : 1;
|
|
|
|
CGuiWidget* x18_basewidget_menu;
|
|
|
|
CGuiWidget* x1c_basewidget_menutitle;
|
|
|
|
CGuiTextPane* x20_textpane_menu;
|
|
|
|
CGuiModel* x24_model_ghost;
|
|
|
|
rstl::reserved_vector<SMenuItem, 4> x28_menuItems;
|
|
|
|
EAnimPhase x6c_animPhase = EAnimPhase::Steady;
|
|
|
|
float x70_ = FLT_EPSILON;
|
|
|
|
float x74_ = FLT_EPSILON;
|
|
|
|
float x78_textFader = 0.f;
|
|
|
|
float x7c_animDur;
|
|
|
|
bool x80_24_swapBeamControls : 1;
|
|
|
|
|
|
|
|
void UpdateMenuWidgetTransform(int, CGuiWidget& w, float);
|
2017-04-02 03:03:37 +00:00
|
|
|
public:
|
2017-04-08 20:40:36 +00:00
|
|
|
CHudVisorBeamMenu(CGuiFrame& baseHud, EHudVisorBeamMenu type,
|
2018-02-15 04:37:21 +00:00
|
|
|
const rstl::reserved_vector<bool, 4>& enables);
|
2017-04-03 01:39:23 +00:00
|
|
|
void Update(float dt, bool init);
|
|
|
|
void UpdateHudAlpha(float alpha);
|
2017-04-08 20:40:36 +00:00
|
|
|
void SetIsVisibleGame(bool v);
|
2018-02-15 04:37:21 +00:00
|
|
|
void SetPlayerHas(const rstl::reserved_vector<bool, 4>& enables);
|
2017-04-08 20:40:36 +00:00
|
|
|
void SetSelection(int, int, float);
|
|
|
|
|
2017-04-02 03:03:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|