diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/tf_hud_arena_class_layout.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf/tf_hud_arena_class_layout.h')
| -rw-r--r-- | game/client/tf/tf_hud_arena_class_layout.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/game/client/tf/tf_hud_arena_class_layout.h b/game/client/tf/tf_hud_arena_class_layout.h new file mode 100644 index 0000000..828b4b8 --- /dev/null +++ b/game/client/tf/tf_hud_arena_class_layout.h @@ -0,0 +1,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 |