summaryrefslogtreecommitdiff
path: root/game/client/tf/vgui/store/v1/tf_store_panel.cpp
blob: 4daf037c864c6a21a1ede3d5678f6a7790e84bc2 (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
59
60
61
62
63
64
65
66
67
68
69
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//


#include "cbase.h"
#include "store/v1/tf_store_page.h"
#include "store/v1/tf_store_panel.h"
#include "store/store_page_halloween.h"
#include "store/store_page_new.h"
#include "store/v1/tf_store_page_maps.h"
#include "store/store_viewcart.h"

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

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
CTFStorePanel1::CTFStorePanel1( vgui::Panel *parent ) : CTFBaseStorePanel(parent)
{
}

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CTFStorePanel1::ApplySchemeSettings( vgui::IScheme *pScheme )
{
	BaseClass::ApplySchemeSettings( pScheme );
}

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CTFStorePanel1::OnThink()
{
	BaseClass::OnThink();
}

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CTFStorePanel1::PostTransactionCompleted( void )
{
	BaseClass::PostTransactionCompleted();
}

//-----------------------------------------------------------------------------
// Purpose: Static store page factory.
//-----------------------------------------------------------------------------
CStorePage *CTFStorePanel1::CreateStorePage( const CEconStoreCategoryManager::StoreCategory_t *pPageData )
{
	if ( pPageData )
	{
		if ( !Q_strcmp( pPageData->m_pchPageClass, "CStorePage_SpecialPromo" ) )
			return new CTFStorePage_SpecialPromo( this, pPageData );

		if ( !Q_strcmp( pPageData->m_pchPageClass, "CStorePage_Maps" ) )
			return new CTFStorePage_Maps( this, pPageData );

		if ( !Q_strcmp( pPageData->m_pchPageClass, "CStorePage_Popular" ) )
			return new CTFStorePage_Popular( this, pPageData );
	}

	// Default, standard store page.
	return new CTFStorePage1( this, pPageData );
}