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.

67 lines
1.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CSTEXTWINDOW_H
  8. #define CSTEXTWINDOW_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "vguitextwindow.h"
  13. #include <spectatorgui.h>
  14. //-----------------------------------------------------------------------------
  15. // Purpose: displays the MOTD
  16. //-----------------------------------------------------------------------------
  17. class CHL2MPTextWindow : public CTextWindow
  18. {
  19. private:
  20. DECLARE_CLASS_SIMPLE( CHL2MPTextWindow, CTextWindow );
  21. public:
  22. CHL2MPTextWindow(IViewPort *pViewPort);
  23. virtual ~CHL2MPTextWindow();
  24. virtual void Update();
  25. virtual void SetVisible(bool state);
  26. virtual void ShowPanel( bool bShow );
  27. virtual void OnKeyCodePressed(vgui::KeyCode code);
  28. protected:
  29. ButtonCode_t m_iScoreBoardKey;
  30. // Background panel -------------------------------------------------------
  31. public:
  32. virtual void PaintBackground();
  33. virtual void PerformLayout();
  34. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  35. bool m_backgroundLayoutFinished;
  36. // End background panel ---------------------------------------------------
  37. };
  38. class CHL2MPSpectatorGUI : public CSpectatorGUI
  39. {
  40. private:
  41. DECLARE_CLASS_SIMPLE( CHL2MPSpectatorGUI, CSpectatorGUI );
  42. public:
  43. CHL2MPSpectatorGUI( IViewPort *pViewPort );
  44. virtual void Update( void );
  45. virtual bool NeedsUpdate( void );
  46. protected:
  47. int m_nLastSpecMode;
  48. CBaseEntity *m_nLastSpecTarget;
  49. };
  50. #endif // CSTEXTWINDOW_H