blob: ffa842f97d851c9225ed88ffab72699956240725 (
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
|
//========= 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
|