summaryrefslogtreecommitdiff
path: root/tools/toolutils/ConsolePage.cpp
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 /tools/toolutils/ConsolePage.cpp
downloadarchived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz
archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip
Diffstat (limited to 'tools/toolutils/ConsolePage.cpp')
-rw-r--r--tools/toolutils/ConsolePage.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/tools/toolutils/ConsolePage.cpp b/tools/toolutils/ConsolePage.cpp
new file mode 100644
index 0000000..b2ff4d5
--- /dev/null
+++ b/tools/toolutils/ConsolePage.cpp
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//===========================================================================//
+
+#include "toolutils/ConsolePage.h"
+#include "toolutils/enginetools_int.h"
+#include "toolframework/ienginetool.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+using namespace vgui;
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Constructor
+//-----------------------------------------------------------------------------
+CConsolePage::CConsolePage( Panel *parent, bool bStatusVersion ) : BaseClass( parent, "ToolsConsole", bStatusVersion )
+{
+ AddActionSignalTarget( this );
+}
+
+
+//-----------------------------------------------------------------------------
+// Submits a command
+//-----------------------------------------------------------------------------
+void CConsolePage::OnCommandSubmitted( const char *pCommand )
+{
+ enginetools->Command( pCommand );
+}
+
+
+//-----------------------------------------------------------------------------
+// Purpose: sets up colors
+//-----------------------------------------------------------------------------
+void CConsolePage::ApplySchemeSettings(IScheme *pScheme)
+{
+ BaseClass::ApplySchemeSettings(pScheme);
+
+ m_PrintColor = GetSchemeColor("IFMConsole.TextColor", pScheme);
+ m_DPrintColor = GetSchemeColor("IFMConsole.DevTextColor", pScheme);
+}