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.

49 lines
1.2 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. //-----------------------------------------------------------------------------
  14. // Purpose: displays the MOTD
  15. //-----------------------------------------------------------------------------
  16. class CCSTextWindow : public CTextWindow
  17. {
  18. private:
  19. DECLARE_CLASS_SIMPLE( CCSTextWindow, CTextWindow );
  20. public:
  21. CCSTextWindow(IViewPort *pViewPort);
  22. virtual ~CCSTextWindow();
  23. virtual void Update();
  24. virtual void SetVisible(bool state);
  25. virtual void ShowPanel( bool bShow );
  26. virtual void OnKeyCodePressed(vgui::KeyCode code);
  27. protected:
  28. ButtonCode_t m_iScoreBoardKey;
  29. // Background panel -------------------------------------------------------
  30. public:
  31. virtual void PaintBackground();
  32. virtual void PerformLayout();
  33. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  34. bool m_backgroundLayoutFinished;
  35. // End background panel ---------------------------------------------------
  36. };
  37. #endif // CSTEXTWINDOW_H