Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef DODSPECTATORGUI_H
  8. #define DODSPECTATORGUI_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <spectatorgui.h>
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Cstrike Spectator UI
  15. //-----------------------------------------------------------------------------
  16. class CDODSpectatorGUI : public CSpectatorGUI
  17. {
  18. private:
  19. DECLARE_CLASS_SIMPLE( CDODSpectatorGUI, CSpectatorGUI );
  20. public:
  21. CDODSpectatorGUI( IViewPort *pViewPort );
  22. virtual void Update( void );
  23. virtual bool NeedsUpdate( void );
  24. virtual Color GetClientColor(int index);
  25. virtual bool ShouldShowPlayerLabel( int specmode );
  26. //virtual bool HasInputElements( void ) { return true; }
  27. protected:
  28. void UpdateTimer();
  29. void UpdateScores();
  30. int m_nLastTime;
  31. int m_nLastSpecMode;
  32. CBaseEntity *m_nLastSpecTarget;
  33. };
  34. #endif // DODSPECTATORGUI_H