blob: 7249c70f6d01bfbfd3c74da0865f03c41a1c8a80 (
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
55
56
57
58
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Matchmaking's "main menu"
//
//=============================================================================//
#include "welcomedialog.h"
#include "GameUI_Interface.h"
#include "vgui_controls/MessageDialog.h"
#include "ixboxsystem.h"
#include "EngineInterface.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
//--------------------------------
// CPlayerMatchDialog
//--------------------------------
CWelcomeDialog::CWelcomeDialog( vgui::Panel *pParent ) : BaseClass( pParent, "WelcomeDialog" )
{
// do nothing
}
//---------------------------------------------------------
// Purpose: Set the title and menu positions
//---------------------------------------------------------
void CWelcomeDialog::PerformLayout( void )
{
BaseClass::PerformLayout();
}
//-----------------------------------------------------------------
// Purpose: Forward commands to the matchmaking base panel
//-----------------------------------------------------------------
void CWelcomeDialog::OnCommand( const char *pCommand )
{
BaseClass::OnCommand( pCommand );
}
//-------------------------------------------------------
// Keyboard input
//-------------------------------------------------------
void CWelcomeDialog::OnKeyCodePressed( vgui::KeyCode code )
{
switch( code )
{
case KEY_XBUTTON_B:
if ( GameUI().IsInLevel() )
{
m_pParent->OnCommand( "ResumeGame" );
}
break;
default:
BaseClass::OnKeyCodePressed( code );
break;
}
}
|