summaryrefslogtreecommitdiff
path: root/game/client/tf/vgui/tf_lobby_container_frame_mvm.h
blob: 0ed0548f5e5f0a4c23096bb18d023df55040f79f (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//

#ifndef TF_LOBBY_CONTAINER_FRAME_MVM_H
#define TF_LOBBY_CONTAINER_FRAME_MVM_H


#include "cbase.h"
//#include "tf_pvelobbypanel.h"
#include "tf_lobby_container_frame.h"

// memdbgon must be the last include file in a .cpp file!!!
#include <tier0/memdbgon.h>


class CBaseLobbyPanel;

// This is a big fat kludge so I can use the PropertyPage
class CLobbyContainerFrame_MvM : public CBaseLobbyContainerFrame
{
	DECLARE_CLASS_SIMPLE( CLobbyContainerFrame_MvM, CBaseLobbyContainerFrame );
public:
	CLobbyContainerFrame_MvM();
	~CLobbyContainerFrame_MvM();

	//
	// PropertyDialog overrides
	//
	virtual void ApplySchemeSettings( vgui::IScheme *pScheme ) OVERRIDE;
	virtual void OnKeyCodePressed(vgui::KeyCode code) OVERRIDE;
	virtual void OnCommand( const char *command ) OVERRIDE;

private:

	virtual const char* GetResFile() const OVERRIDE { return "Resource/UI/LobbyContainerFrame_MvM.res"; }
	virtual TF_MatchmakingMode GetHandledMode() const { return TF_Matchmaking_MVM; }
	virtual bool VerifyPartyAuthorization() const OVERRIDE;
	virtual void WriteControls() OVERRIDE;
	virtual void HandleBackPressed() OVERRIDE;

	vgui::Button *m_pStartPartyButton;
	vgui::Button *m_pPlayNowButton;
	vgui::Button *m_pPracticeButton;
};

#endif //TF_LOBBY_CONTAINER_FRAME_MVM_H