Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.

43 lines
972 B

5 years ago
//========= 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