summaryrefslogtreecommitdiff
path: root/game/client/tf/tf_hud_arena_class_layout.h
blob: 828b4b8a91c5ade87a2cd90085de7557cae2aa62 (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
43
44
45
46
47
48
49
50
51
52
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================

#ifndef TF_HUD_ARENA_CLASS_LAYOUT_H
#define TF_HUD_ARENA_CLASS_LAYOUT_H
#ifdef _WIN32
#pragma once
#endif

#include "hudelement.h"
#include "tf_imagepanel.h"
#include "tf_controls.h"
#include <vgui_controls/EditablePanel.h>

using namespace vgui;

#define MAX_CLASS_IMAGES	12

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
class CHudArenaClassLayout : public CHudElement, public EditablePanel
{
	DECLARE_CLASS_SIMPLE( CHudArenaClassLayout, EditablePanel );

public:
	CHudArenaClassLayout( const char *pElementName );

	virtual void	Init( void );
	virtual void	ApplySchemeSettings( IScheme *scheme );
	virtual bool	ShouldDraw( void );
	virtual void	OnTick( void );
	virtual void	PerformLayout( void );
	bool HandleKeyCodePressed( vgui::KeyCode code );

	virtual int GetRenderGroupPriority() { return 40; }

	virtual void	SetVisible( bool state );

private:
	CTFImagePanel *m_pBackground;
	CTFImagePanel *m_pLocalPlayerBG;
	CExLabel *m_pTitle;
	CExLabel *m_pChangeLabel;
	CExLabel *m_pChangeLabelShadow;
	CTFImagePanel *m_ClassImages[MAX_CLASS_IMAGES];
};

#endif // TF_HUD_ARENA_CLASS_LAYOUT_H