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.

42 lines
972 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TFCTEAMMENU_H
  8. #define TFCTEAMMENU_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <teammenu.h>
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Displays the team menu
  15. //-----------------------------------------------------------------------------
  16. class CTFCTeamMenu : public CTeamMenu
  17. {
  18. private:
  19. DECLARE_CLASS_SIMPLE( CTFCTeamMenu, CTeamMenu );
  20. public:
  21. CTFCTeamMenu(IViewPort *pViewPort);
  22. ~CTFCTeamMenu();
  23. virtual void ApplySettings( KeyValues *inResourceData );
  24. void Update();
  25. void ShowPanel( bool bShow );
  26. private:
  27. enum { NUM_TEAMS = 3 };
  28. // VGUI2 override
  29. void OnCommand( const char *command);
  30. // helper functions
  31. void SetVisibleButton(const char *textEntryName, bool state);
  32. };
  33. #endif // TFCTEAMMENU_H