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.

52 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef DODTEXTWINDOW_H
  8. #define DODTEXTWINDOW_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "vguitextwindow.h"
  13. #include "dodmenubackground.h"
  14. #include <vgui_controls/Panel.h>
  15. using namespace vgui;
  16. //-----------------------------------------------------------------------------
  17. // Purpose: displays the MOTD
  18. //-----------------------------------------------------------------------------
  19. class CDODTextWindow : public CTextWindow
  20. {
  21. private:
  22. DECLARE_CLASS_SIMPLE( CDODTextWindow, CTextWindow );
  23. public:
  24. CDODTextWindow(IViewPort *pViewPort);
  25. virtual ~CDODTextWindow();
  26. virtual void Update();
  27. virtual void SetVisible(bool state);
  28. virtual void ShowPanel( bool bShow );
  29. virtual void OnKeyCodePressed(vgui::KeyCode code);
  30. virtual Panel *CreateControlByName( const char *controlName );
  31. protected:
  32. ButtonCode_t m_iScoreBoardKey;
  33. public:
  34. virtual void PaintBackground();
  35. virtual void PerformLayout();
  36. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  37. CDODMenuBackground *m_pBackground;
  38. };
  39. #endif // DODTEXTWINDOW_H