Counter Strike : Global Offensive Source Code
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.

86 lines
2.5 KiB

  1. //========= Copyright � 1996-2005, 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. void PrintBuyTimeOverMessage( void );
  25. //==============================================================================
  26. class CounterStrikeViewport : public CBaseViewport
  27. {
  28. private:
  29. DECLARE_CLASS_SIMPLE( CounterStrikeViewport, CBaseViewport );
  30. public:
  31. IViewPortPanel* CreatePanelByName( const char *szPanelName );
  32. void CreateDefaultPanels( void );
  33. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  34. virtual void Start( IGameUIFuncs *pGameUIFuncs, IGameEventManager2 * pGameEventManager );
  35. int GetDeathMessageStartHeight( void );
  36. virtual void ShowBackGround( bool bShow )
  37. {
  38. m_pBackGround->SetVisible( false ); // CS:S menus paint their own backgrounds...
  39. }
  40. //=============================================================================
  41. // HPE_BEGIN:
  42. // [mhansen] We want to let the team screen know if this is the first time
  43. // we chose a team so we can decide what the "back" action is
  44. //=============================================================================
  45. bool GetChoseTeamAndClass() { return m_bChoseTeamAndClass; }
  46. void SetChoseTeamAndClass( bool chose ) { m_bChoseTeamAndClass = chose; }
  47. //=============================================================================
  48. // HPE_END
  49. //=============================================================================
  50. virtual void FireGameEvent( IGameEvent * event );
  51. virtual void UpdateAllPanels( void );
  52. private:
  53. void CenterWindow( vgui::Frame *win );
  54. //=============================================================================
  55. // HPE_BEGIN:
  56. // [mhansen] We want to let the team screen know if this is the first time
  57. // we chose a team so we can decide what the "back" action is
  58. //=============================================================================
  59. bool m_bChoseTeamAndClass;
  60. //=============================================================================
  61. // HPE_END
  62. //=============================================================================
  63. };
  64. #endif // COUNTERSTRIKEVIEWPORT_H