blob: 3d3137256419c43947b40fc8b863c2dfecaf8ee8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
|