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.

54 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef GAMECONSOLE_H
  8. #define GAMECONSOLE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "GameUI/IGameConsole.h"
  13. class CGameConsoleDialog;
  14. //-----------------------------------------------------------------------------
  15. // Purpose: VGui implementation of the game/dev console
  16. //-----------------------------------------------------------------------------
  17. class CGameConsole : public IGameConsole
  18. {
  19. public:
  20. CGameConsole();
  21. ~CGameConsole();
  22. // sets up the console for use
  23. void Initialize();
  24. // activates the console, makes it visible and brings it to the foreground
  25. virtual void Activate();
  26. // hides the console
  27. virtual void Hide();
  28. // clears the console
  29. virtual void Clear();
  30. // returns true if the console is currently in focus
  31. virtual bool IsConsoleVisible();
  32. // activates the console after a delay
  33. void ActivateDelayed(float time);
  34. void SetParent( int parent );
  35. static void OnCmdCondump();
  36. private:
  37. bool m_bInitialized;
  38. CGameConsoleDialog *m_pConsole;
  39. };
  40. extern CGameConsole &GameConsole();
  41. #endif // GAMECONSOLE_H