mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-13 04:09:09 +00:00
1
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
//========= 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();
|
||||
Reference in New Issue
Block a user