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