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.

54 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CSTEAMMENU_H
  8. #define CSTEAMMENU_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <teammenu.h>
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Displays the team menu
  15. //-----------------------------------------------------------------------------
  16. class CCSTeamMenu : public CTeamMenu
  17. {
  18. private:
  19. DECLARE_CLASS_SIMPLE( CCSTeamMenu, CTeamMenu );
  20. public:
  21. CCSTeamMenu(IViewPort *pViewPort);
  22. ~CCSTeamMenu();
  23. void Update();
  24. void ShowPanel( bool bShow );
  25. virtual void SetVisible(bool state);
  26. private:
  27. enum { NUM_TEAMS = 3 };
  28. // VGUI2 override
  29. virtual void OnCommand( const char *command);
  30. virtual void OnKeyCodePressed( vgui::KeyCode code );
  31. // helper functions
  32. void SetVisibleButton(const char *textEntryName, bool state);
  33. bool m_bVIPMap;
  34. // Background panel -------------------------------------------------------
  35. public:
  36. virtual void PaintBackground();
  37. virtual void PerformLayout();
  38. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  39. bool m_backgroundLayoutFinished;
  40. // End background panel ---------------------------------------------------
  41. };
  42. #endif // CSTEAMMENU_H