summaryrefslogtreecommitdiff
path: root/gameui/GameConsole.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 /gameui/GameConsole.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'gameui/GameConsole.h')
-rw-r--r--gameui/GameConsole.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/gameui/GameConsole.h b/gameui/GameConsole.h
new file mode 100644
index 0000000..f3ed1ce
--- /dev/null
+++ b/gameui/GameConsole.h
@@ -0,0 +1,54 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef GAMECONSOLE_H
+#define GAMECONSOLE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "GameUI/IGameConsole.h"
+
+class CGameConsoleDialog;
+
+//-----------------------------------------------------------------------------
+// Purpose: VGui implementation of the game/dev console
+//-----------------------------------------------------------------------------
+class CGameConsole : public IGameConsole
+{
+public:
+ CGameConsole();
+ ~CGameConsole();
+
+ // sets up the console for use
+ void Initialize();
+
+ // activates the console, makes it visible and brings it to the foreground
+ virtual void Activate();
+ // hides the console
+ virtual void Hide();
+ // clears the console
+ virtual void Clear();
+
+ // returns true if the console is currently in focus
+ virtual bool IsConsoleVisible();
+
+ // activates the console after a delay
+ void ActivateDelayed(float time);
+
+ void SetParent( int parent );
+
+ static void OnCmdCondump();
+private:
+
+ bool m_bInitialized;
+ CGameConsoleDialog *m_pConsole;
+};
+
+extern CGameConsole &GameConsole();
+
+#endif // GAMECONSOLE_H