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.

59 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. void HideImmediately( void );
  31. // returns true if the console is currently in focus
  32. virtual bool IsConsoleVisible();
  33. // activates the console after a delay
  34. void ActivateDelayed(float time);
  35. void SetParent( int parent );
  36. // hides and deletes panel
  37. void Shutdown( void );
  38. static void OnCmdCondump();
  39. private:
  40. bool m_bInitialized;
  41. CGameConsoleDialog *m_pConsole;
  42. };
  43. extern CGameConsole &GameConsole();
  44. #endif // GAMECONSOLE_H