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.
 
 
 
 
 
 

64 lines
1.3 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $Date: $
// $NoKeywords: $
//=============================================================================//
#include <vgui/Cursor.h>
#include "clientmode_tfbase.h"
#include <vgui_controls/EditablePanel.h>
namespace vgui
{
class AnimationController;
}
class ClientModeTFNormal : public ClientModeTFBase
{
DECLARE_CLASS( ClientModeTFNormal, ClientModeTFBase );
private:
class Viewport : public CBaseViewport
{
typedef CBaseViewport BaseClass;
// Panel overrides.
public:
Viewport();
virtual ~Viewport() {}
virtual void OnThink();
void ReloadScheme();
virtual void ApplySchemeSettings( vgui::IScheme *pScheme )
{
BaseClass::ApplySchemeSettings( pScheme );
gHUD.InitColors( pScheme );
SetPaintBackgroundEnabled( false );
}
virtual void CreateDefaultPanels( void ) { /* don't create any panels yet*/ };
private:
bool m_bHumanScheme;
};
// IClientMode overrides.
public:
virtual void Update();
virtual void CreateMove( float flInputSampleTime, CUserCmd *cmd );
virtual bool ShouldDrawViewModel( void );
virtual vgui::Panel *GetMinimapParent( void );
ClientModeTFNormal();
};
extern IClientMode *GetClientModeNormal();