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.

62 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ACHIEVEMENTANDSTATSSUMMARY_H
  8. #define ACHIEVEMENTANDSTATSSUMMARY_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/PropertyDialog.h>
  13. class CAchievementsPage;
  14. class CLifetimeStatsPage;
  15. class CMatchStatsPage;
  16. class StatCard;
  17. class CStatsSummary;
  18. const int cAchievementsDialogMinWidth = 1024; // don't show this screen for lower resolutions
  19. //-----------------------------------------------------------------------------
  20. // Purpose: dialog for displaying the achievements/stats summary
  21. //-----------------------------------------------------------------------------
  22. class CAchievementAndStatsSummary : public vgui::PropertyDialog
  23. {
  24. DECLARE_CLASS_SIMPLE( CAchievementAndStatsSummary, vgui::PropertyDialog );
  25. public:
  26. CAchievementAndStatsSummary(vgui::Panel *parent);
  27. ~CAchievementAndStatsSummary();
  28. virtual void Activate();
  29. void OnKeyCodePressed( vgui::KeyCode code )
  30. {
  31. if ( code == KEY_XBUTTON_B )
  32. {
  33. Close();
  34. }
  35. else
  36. {
  37. BaseClass::OnKeyCodePressed(code);
  38. }
  39. }
  40. protected:
  41. virtual bool OnOK(bool applyOnly);
  42. virtual void OnSizeChanged( int newWide, int newTall );
  43. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  44. private:
  45. CAchievementsPage* m_pAchievementsPage;
  46. CLifetimeStatsPage* m_pLifetimeStatsPage;
  47. CMatchStatsPage* m_pMatchStatsPage;
  48. CStatsSummary* m_pStatsSummary;
  49. };
  50. #endif // ACHIEVEMENTANDSTATSSUMMARY_H