Counter Strike : Global Offensive Source Code
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//========= Copyright � 1996-2005, 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;
void PrintBuyTimeOverMessage( void );
//==============================================================================
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...
} //=============================================================================
// HPE_BEGIN:
// [mhansen] We want to let the team screen know if this is the first time
// we chose a team so we can decide what the "back" action is
//=============================================================================
bool GetChoseTeamAndClass() { return m_bChoseTeamAndClass; } void SetChoseTeamAndClass( bool chose ) { m_bChoseTeamAndClass = chose; } //=============================================================================
// HPE_END
//=============================================================================
virtual void FireGameEvent( IGameEvent * event );
virtual void UpdateAllPanels( void );
private: void CenterWindow( vgui::Frame *win );
//=============================================================================
// HPE_BEGIN:
// [mhansen] We want to let the team screen know if this is the first time
// we chose a team so we can decide what the "back" action is
//=============================================================================
bool m_bChoseTeamAndClass; //=============================================================================
// HPE_END
//=============================================================================
};
#endif // COUNTERSTRIKEVIEWPORT_H
|