summaryrefslogtreecommitdiff
path: root/game/client/dod/VGUI/dodspectatorgui.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/client/dod/VGUI/dodspectatorgui.h')
-rw-r--r--game/client/dod/VGUI/dodspectatorgui.h46
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