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.

61 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef COUNTERSTRIKEVIEWPORT_H
  8. #define COUNTERSTRIKEVIEWPORT_H
  9. #include "cs_shareddefs.h"
  10. #include "baseviewport.h"
  11. using namespace vgui;
  12. namespace vgui
  13. {
  14. class Panel;
  15. class Label;
  16. class CBitmapImagePanel;
  17. }
  18. class CCSTeamMenu;
  19. class CCSClassMenu;
  20. class CCSSpectatorGUI;
  21. class CCSClientScoreBoard;
  22. class CBuyMenu;
  23. class CCSClientScoreBoardDialog;
  24. //==============================================================================
  25. class CounterStrikeViewport : public CBaseViewport
  26. {
  27. private:
  28. DECLARE_CLASS_SIMPLE( CounterStrikeViewport, CBaseViewport );
  29. public:
  30. IViewPortPanel* CreatePanelByName(const char *szPanelName);
  31. void CreateDefaultPanels( void );
  32. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  33. virtual void Start( IGameUIFuncs *pGameUIFuncs, IGameEventManager2 * pGameEventManager );
  34. int GetDeathMessageStartHeight( void );
  35. virtual void ShowBackGround(bool bShow)
  36. {
  37. m_pBackGround->SetVisible( false ); // CS:S menus paint their own backgrounds...
  38. }
  39. private:
  40. void CenterWindow( vgui::Frame *win );
  41. };
  42. #endif // COUNTERSTRIKEVIEWPORT_H