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.

79 lines
1.7 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef TF_ARENATEAMMENU_H
  8. #define TF_ARENATEAMMENU_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "tf_controls.h"
  13. #include <teammenu.h>
  14. #include "tf_teammenu.h"
  15. //-----------------------------------------------------------------------------
  16. // Purpose: Displays the team menu
  17. //-----------------------------------------------------------------------------
  18. class CTFArenaTeamMenu : public CTeamMenu
  19. {
  20. private:
  21. DECLARE_CLASS_SIMPLE( CTFArenaTeamMenu, CTeamMenu );
  22. public:
  23. CTFArenaTeamMenu( IViewPort *pViewPort );
  24. ~CTFArenaTeamMenu();
  25. void Update();
  26. void ShowPanel( bool bShow );
  27. #ifdef _X360
  28. CON_COMMAND_MEMBER_F( CTFTeamMenu, "join_team", Join_Team, "Send a jointeam command", 0 );
  29. #endif
  30. protected:
  31. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  32. virtual void OnKeyCodePressed( vgui::KeyCode code );
  33. // command callbacks
  34. virtual void OnCommand( const char *command );
  35. virtual void LoadMapPage( const char *mapName );
  36. virtual void OnTick( void );
  37. virtual const char *GetName( void ) { return PANEL_ARENA_TEAM; }
  38. private:
  39. CTFTeamButton *m_pAutoTeamButton;
  40. CTFTeamButton *m_pSpecTeamButton;
  41. CExLabel *m_pSpecLabel;
  42. #ifdef _X360
  43. CTFFooter *m_pFooter;
  44. #else
  45. CExButton *m_pCancelButton;
  46. #endif
  47. CSCHintIcon *m_pCancelHintIcon;
  48. CSCHintIcon *m_pJoinAutoHintIcon;
  49. CSCHintIcon *m_pJoinSpectatorsHintIcon;
  50. bool m_bRedDisabled;
  51. bool m_bBlueDisabled;
  52. private:
  53. enum { NUM_TEAMS = 3 };
  54. ButtonCode_t m_iTeamMenuKey;
  55. void ActivateSelectIconHint( int focus_group_number );
  56. };
  57. #endif // TF_ARENATEAMMENU_H