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/vgui/tf_imagepanel.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/vgui/tf_imagepanel.h')
| -rw-r--r-- | game/client/tf/vgui/tf_imagepanel.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/game/client/tf/vgui/tf_imagepanel.h b/game/client/tf/vgui/tf_imagepanel.h new file mode 100644 index 0000000..ffa842f --- /dev/null +++ b/game/client/tf/vgui/tf_imagepanel.h @@ -0,0 +1,41 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TF_IMAGEPANEL_H +#define TF_IMAGEPANEL_H +#ifdef _WIN32 +#pragma once +#endif + +#include "tf_shareddefs.h" +#include <vgui/IScheme.h> +#include <vgui_controls/ScalableImagePanel.h> +#include "GameEventListener.h" + +#define MAX_BG_LENGTH 128 + +class CTFImagePanel : public vgui::ScalableImagePanel, public CGameEventListener +{ +public: + DECLARE_CLASS_SIMPLE( CTFImagePanel, vgui::ScalableImagePanel ); + + CTFImagePanel( vgui::Panel *parent, const char *name ); + + virtual void ApplySettings( KeyValues *inResourceData ); + void UpdateBGImage( void ); + void SetBGTeam( int iTeam ) { m_iBGTeam = iTeam; } + +public: // IGameEventListener Interface + virtual void FireGameEvent( IGameEvent * event ); + +public: + char m_szTeamBG[TF_TEAM_COUNT][MAX_BG_LENGTH]; + int m_iBGTeam; +}; + + +#endif // TF_IMAGEPANEL_H |