diff options
Diffstat (limited to 'game/client/tf2/clientmode_tfnormal.h')
| -rw-r--r-- | game/client/tf2/clientmode_tfnormal.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/game/client/tf2/clientmode_tfnormal.h b/game/client/tf2/clientmode_tfnormal.h new file mode 100644 index 0000000..a2b4a34 --- /dev/null +++ b/game/client/tf2/clientmode_tfnormal.h @@ -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();
\ No newline at end of file |