diff options
Diffstat (limited to 'game/client/tfc/vgui/tfcteammenu.h')
| -rw-r--r-- | game/client/tfc/vgui/tfcteammenu.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/game/client/tfc/vgui/tfcteammenu.h b/game/client/tfc/vgui/tfcteammenu.h new file mode 100644 index 0000000..3d31372 --- /dev/null +++ b/game/client/tfc/vgui/tfcteammenu.h @@ -0,0 +1,42 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TFCTEAMMENU_H +#define TFCTEAMMENU_H +#ifdef _WIN32 +#pragma once +#endif + +#include <teammenu.h> + +//----------------------------------------------------------------------------- +// Purpose: Displays the team menu +//----------------------------------------------------------------------------- +class CTFCTeamMenu : public CTeamMenu +{ +private: + DECLARE_CLASS_SIMPLE( CTFCTeamMenu, CTeamMenu ); + +public: + CTFCTeamMenu(IViewPort *pViewPort); + ~CTFCTeamMenu(); + + virtual void ApplySettings( KeyValues *inResourceData ); + + void Update(); + void ShowPanel( bool bShow ); + +private: + enum { NUM_TEAMS = 3 }; + + // VGUI2 override + void OnCommand( const char *command); + // helper functions + void SetVisibleButton(const char *textEntryName, bool state); +}; + +#endif // TFCTEAMMENU_H |