summaryrefslogtreecommitdiff
path: root/game/client/tf2/clientmode_tfnormal.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf2/clientmode_tfnormal.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf2/clientmode_tfnormal.h')
-rw-r--r--game/client/tf2/clientmode_tfnormal.h64
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