Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.4 KiB

  1. //===== Copyright � 1996-2006, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //===========================================================================//
  7. #include "toolutils/ConsolePage.h"
  8. #include "toolutils/enginetools_int.h"
  9. #include "toolframework/ienginetool.h"
  10. // memdbgon must be the last include file in a .cpp file!!!
  11. #include "tier0/memdbgon.h"
  12. using namespace vgui;
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Constructor
  15. //-----------------------------------------------------------------------------
  16. CConsolePage::CConsolePage( Panel *parent, bool bStatusVersion ) : BaseClass( parent, "ToolsConsole", bStatusVersion )
  17. {
  18. AddActionSignalTarget( this );
  19. }
  20. //-----------------------------------------------------------------------------
  21. // Submits a command
  22. //-----------------------------------------------------------------------------
  23. void CConsolePage::OnCommandSubmitted( const char *pCommand )
  24. {
  25. enginetools->Command( pCommand );
  26. }
  27. //-----------------------------------------------------------------------------
  28. // Purpose: sets up colors
  29. //-----------------------------------------------------------------------------
  30. void CConsolePage::ApplySchemeSettings(IScheme *pScheme)
  31. {
  32. BaseClass::ApplySchemeSettings(pScheme);
  33. m_PrintColor = GetSchemeColor("IFMConsole.TextColor", pScheme);
  34. m_DPrintColor = GetSchemeColor("IFMConsole.DevTextColor", pScheme);
  35. }