summaryrefslogtreecommitdiff
path: root/game/client/cstrike/VGUI/counterstrikeviewport.h
blob: 25591676c0d3826bdb39c36deae83105f85112fd (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
55
56
57
58
59
60
61
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

#ifndef COUNTERSTRIKEVIEWPORT_H
#define COUNTERSTRIKEVIEWPORT_H

#include "cs_shareddefs.h"
#include "baseviewport.h"


using namespace vgui;

namespace vgui 
{
	class Panel;
	class Label;
	class CBitmapImagePanel;
}

class CCSTeamMenu;
class CCSClassMenu;
class CCSSpectatorGUI;
class CCSClientScoreBoard;
class CBuyMenu;
class CCSClientScoreBoardDialog;



//==============================================================================
class CounterStrikeViewport : public CBaseViewport
{

private:
	DECLARE_CLASS_SIMPLE( CounterStrikeViewport, CBaseViewport );

public:

	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 ShowBackGround(bool bShow) 
	{
		m_pBackGround->SetVisible( false );	// CS:S menus paint their own backgrounds...
	}

private:
	void CenterWindow( vgui::Frame *win );

};


#endif // COUNTERSTRIKEVIEWPORT_H