diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/tf_hud_crosshair.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf/tf_hud_crosshair.h')
| -rw-r--r-- | game/client/tf/tf_hud_crosshair.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/game/client/tf/tf_hud_crosshair.h b/game/client/tf/tf_hud_crosshair.h new file mode 100644 index 0000000..ab24675 --- /dev/null +++ b/game/client/tf/tf_hud_crosshair.h @@ -0,0 +1,44 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef HUD_TF_CROSSHAIR_H +#define HUD_TF_CROSSHAIR_H +#ifdef _WIN32 +#pragma once +#endif + +#include "hud_crosshair.h" + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +class CHudTFCrosshair : public CHudCrosshair +{ +public: + DECLARE_CLASS_SIMPLE( CHudTFCrosshair, CHudCrosshair ); + + CHudTFCrosshair( const char *name ); + virtual ~CHudTFCrosshair( void ); + + virtual void Init() OVERRIDE; + virtual void LevelShutdown( void ) OVERRIDE; + virtual bool ShouldDraw() OVERRIDE; + +protected: + virtual void Paint() OVERRIDE; + virtual void FireGameEvent( IGameEvent * event ) OVERRIDE; + +private: + int m_iCrosshairTextureID; + IVguiMatInfo *m_pCrosshairMaterial; + + char m_szPreviousCrosshair[256]; // name of the current crosshair + float m_flTimeToHideUntil; +}; + + +#endif // HUD_TF_CROSSHAIR_H |