64 lines
1.3 KiB
C++
64 lines
1.3 KiB
C++
//========= 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(); |