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/dod/VGUI/dodspectatorgui.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/dod/VGUI/dodspectatorgui.h')
| -rw-r--r-- | game/client/dod/VGUI/dodspectatorgui.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/game/client/dod/VGUI/dodspectatorgui.h b/game/client/dod/VGUI/dodspectatorgui.h new file mode 100644 index 0000000..11b15b4 --- /dev/null +++ b/game/client/dod/VGUI/dodspectatorgui.h @@ -0,0 +1,46 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef DODSPECTATORGUI_H +#define DODSPECTATORGUI_H +#ifdef _WIN32 +#pragma once +#endif + +#include <spectatorgui.h> + + +//----------------------------------------------------------------------------- +// Purpose: Cstrike Spectator UI +//----------------------------------------------------------------------------- +class CDODSpectatorGUI : public CSpectatorGUI +{ +private: + DECLARE_CLASS_SIMPLE( CDODSpectatorGUI, CSpectatorGUI ); + +public: + CDODSpectatorGUI( IViewPort *pViewPort ); + + virtual void Update( void ); + virtual bool NeedsUpdate( void ); + virtual Color GetClientColor(int index); + + virtual bool ShouldShowPlayerLabel( int specmode ); + + //virtual bool HasInputElements( void ) { return true; } + +protected: + + void UpdateTimer(); + void UpdateScores(); + + int m_nLastTime; + int m_nLastSpecMode; + CBaseEntity *m_nLastSpecTarget; +}; + +#endif // DODSPECTATORGUI_H |