Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CSMATCHSTATSPAGE_H
  8. #define CSMATCHSTATSPAGE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "base_stats_page.h"
  13. class CMatchStatsPage : public CBaseStatsPage
  14. {
  15. DECLARE_CLASS_SIMPLE ( CMatchStatsPage, CBaseStatsPage );
  16. public:
  17. CMatchStatsPage( vgui::Panel *parent, const char *name );
  18. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  19. void RepopulateStats();
  20. int AddSimpleStat( int desiredStat, const StatsCollection_t& personalMatchStats, RoundStatsDirectAverage_t* tStats, RoundStatsDirectAverage_t* ctStats, RoundStatsDirectAverage_t* serverStats );
  21. int AddAccuracyStat(const StatsCollection_t& personalMatchStats, RoundStatsDirectAverage_t* tStats, RoundStatsDirectAverage_t* ctStats, RoundStatsDirectAverage_t* serverStats );
  22. int AddKillToDeathStat(const StatsCollection_t& personalMatchStats, RoundStatsDirectAverage_t* tStats, RoundStatsDirectAverage_t* ctStats, RoundStatsDirectAverage_t* serverStats );
  23. virtual void OnSizeChanged(int wide, int tall);
  24. CBaseStatGroupPanel* m_allStatsGroupPanel;
  25. CBaseStatGroupPanel* m_detailedWeaponStatsGroupPanel;
  26. CBaseStatGroupPanel* m_specialSkillsStatsGroupPanel;
  27. CBaseStatGroupPanel* m_mapAndMiscellanyStatsGroupPanel;
  28. CBaseStatGroupPanel* m_missionAndObjectiveStatsGroupPanel;
  29. vgui::Label* m_ResetNotice;
  30. };
  31. #endif // CSMATCHSTATSPAGE_H