Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.
 
 
 
 
 
 

54 lines
1.1 KiB

//========= 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