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.
45 lines
1.1 KiB
45 lines
1.1 KiB
![]()
4 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
//=============================================================================
|
||
|
|
||
|
#ifndef TF_HUD_TEAMSWITCH_H
|
||
|
#define TF_HUD_TEAMSWITCH_H
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include "hudelement.h"
|
||
|
#include <vgui_controls/EditablePanel.h>
|
||
|
|
||
|
using namespace vgui;
|
||
|
|
||
|
using namespace vgui;
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Purpose:
|
||
|
//-----------------------------------------------------------------------------
|
||
|
class CHudTeamSwitch : public CHudElement, public EditablePanel
|
||
|
{
|
||
|
DECLARE_CLASS_SIMPLE( CHudTeamSwitch, EditablePanel );
|
||
|
|
||
|
public:
|
||
|
CHudTeamSwitch( const char *pElementName );
|
||
|
|
||
|
virtual void Init( void );
|
||
|
virtual void OnTick( void );
|
||
|
virtual void LevelInit( void );
|
||
|
virtual void ApplySchemeSettings( IScheme *scheme );
|
||
|
virtual bool ShouldDraw( void );
|
||
|
|
||
|
virtual void FireGameEvent( IGameEvent * event );
|
||
|
void SetupSwitchPanel( int iNewTeam );
|
||
|
|
||
|
private:
|
||
|
Label *m_pBalanceLabel;
|
||
|
float m_flHideAt;
|
||
|
};
|
||
|
|
||
|
#endif // TF_HUD_TEAMSWITCH_H
|