50 virtual void tick(
double dt)
override;
57 virtual const char*
type()
const override;
63 virtual makVrv::DtOsgChannel*
findChannel(
const std::string& channelName =
"")
override;
117 virtual void applyFade(makVrv::DtQuadProxy* quad,
float val);
122 virtual void applyFade(makVrv::DtTextProxy* text,
float val);
Handle class for safe access to attributes.
Definition attributeHandle.h:30
DtHumanHudUpdater()
Default constructor.
virtual void onWeaponStateChanged(int state) override
Handles changes in weapon state.
virtual void onWeaponIndexChanged(int index) override
Handles changes in the current weapon index.
virtual bool postInitialize() override
Performs post-initialization setup.
virtual void onPostureChanged(HumanPosture posture)
Handles changes in player posture.
virtual ~DtHumanVrHudUpdater() override
Virtual destructor.
virtual void onWeaponListChanged(const DtAttributeHandle &) override
Handles changes in the weapon list.
virtual const char * type() const override
Returns the component type identifier.
virtual void tick(double dt) override
Updates the VR HUD elements for the current frame.
virtual void applyFade(makVrv::DtQuadProxy *quad, float val)
Applies a fade effect to a quad proxy.
void updateGunReticle(bool visible, double dt)
Updates the gun reticle in VR mode.
DtHumanVrHudUpdater()
Default constructor.
virtual void applyFade(makVrv::DtTextProxy *text, float val)
Applies a fade effect to a text proxy.
virtual bool amReticleProvider() const override
Checks if this updater provides the reticle.
float myPostureFadeValue
Current fade value for posture indicators.
Definition humanVrHudUpdater.h:129
void onVrStateChanged(bool enabled)
Handles changes in VR state.
virtual void delayFade(float *fader, float val)
Applies a delayed fade effect to a fader value.
makVre::DtMenuCursor * myVrAimPoint
VR-specific aim point cursor.
Definition humanVrHudUpdater.h:132
virtual void shutdown() override
Cleans up resources when the component is being shut down.
float myWeaponFadeValue
Current fade value for weapon indicators.
Definition humanVrHudUpdater.h:126
virtual void onLauncherIdChanged(DtEntityIdentifier id) override
Handles changes in the launcher entity ID.
virtual void deleteAll() override
Deletes all HUD elements.
virtual makVrv::DtOsgChannel * findChannel(const std::string &channelName="") override
Finds an OSG channel by name.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the VR HUD updater component.
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Defines DtHumanHudUpdater for managing human-specific HUD elements.
Defines export macros for the Human Frontend library.
#define HUMAN_DLL
Definition export.h:19
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtHumanVrHudUpdaterType
Type identifier for DtHumanVrHudUpdater component.
Definition humanVrHudUpdater.h:21
HumanPosture
Enumeration of human posture states.
Definition stateDefines.h:30
Common enumeration definitions used throughout the VREngage system.