From 3bf9df6b2785fa6d951086978a3e66f49427166a Mon Sep 17 00:00:00 2001 From: FluorescentCIAAfricanAmerican <0934gj3049fk@protonmail.com> Date: Wed, 22 Apr 2020 12:56:21 -0400 Subject: 1 --- tools/toolutils/ConsolePage.cpp | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tools/toolutils/ConsolePage.cpp (limited to 'tools/toolutils/ConsolePage.cpp') 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); +} -- cgit v1.2.3