blob: f851cbe1d87cc9ae612c94cb7d97cc8c3f188a11 (
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
53
54
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef TF_VIEWPORT_H
#define TF_VIEWPORT_H
#include "tf_shareddefs.h"
#include "baseviewport.h"
using namespace vgui;
namespace vgui
{
class Panel;
class Label;
class CBitmapImagePanel;
}
//==============================================================================
class TFViewport : public CBaseViewport
{
private:
DECLARE_CLASS_SIMPLE( TFViewport, CBaseViewport );
public:
TFViewport();
~TFViewport();
IViewPortPanel* CreatePanelByName(const char *szPanelName);
void CreateDefaultPanels( void );
virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
virtual void Start( IGameUIFuncs *pGameUIFuncs, IGameEventManager2 * pGameEventManager );
int GetDeathMessageStartHeight( void );
virtual void OnScreenSizeChanged( int iOldWide, int iOldTall );
virtual void OnTick() OVERRIDE;
private:
void CenterWindow( vgui::Frame *win );
};
#endif // TF_Viewport_H
|