summaryrefslogtreecommitdiff
path: root/game/client/cstrike/VGUI/match_stats_page.h
blob: 9c859027c08828fb39130d251d7a40db44ab08d5 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//

#ifndef CSMATCHSTATSPAGE_H
#define CSMATCHSTATSPAGE_H
#ifdef _WIN32
#pragma once
#endif

#include "base_stats_page.h"

class CMatchStatsPage : public CBaseStatsPage
{
    DECLARE_CLASS_SIMPLE ( CMatchStatsPage, CBaseStatsPage );

public:
    CMatchStatsPage( vgui::Panel *parent, const char *name );
	
    virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
	void RepopulateStats();
	int AddSimpleStat( int desiredStat, const StatsCollection_t& personalMatchStats, RoundStatsDirectAverage_t* tStats, RoundStatsDirectAverage_t* ctStats, RoundStatsDirectAverage_t* serverStats );
	int AddAccuracyStat(const StatsCollection_t& personalMatchStats, RoundStatsDirectAverage_t* tStats, RoundStatsDirectAverage_t* ctStats, RoundStatsDirectAverage_t* serverStats );
	int AddKillToDeathStat(const StatsCollection_t& personalMatchStats, RoundStatsDirectAverage_t* tStats, RoundStatsDirectAverage_t* ctStats, RoundStatsDirectAverage_t* serverStats );
	virtual void OnSizeChanged(int wide, int tall);

	CBaseStatGroupPanel* m_allStatsGroupPanel;
	CBaseStatGroupPanel* m_detailedWeaponStatsGroupPanel;
	CBaseStatGroupPanel* m_specialSkillsStatsGroupPanel;
	CBaseStatGroupPanel* m_mapAndMiscellanyStatsGroupPanel;
	CBaseStatGroupPanel* m_missionAndObjectiveStatsGroupPanel;

	vgui::Label*	m_ResetNotice;
};

#endif // CSMATCHSTATSPAGE_H