diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/cstrike/VGUI/achievement_stats_summary.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/cstrike/VGUI/achievement_stats_summary.h')
| -rw-r--r-- | game/client/cstrike/VGUI/achievement_stats_summary.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/game/client/cstrike/VGUI/achievement_stats_summary.h b/game/client/cstrike/VGUI/achievement_stats_summary.h new file mode 100644 index 0000000..c73b4d7 --- /dev/null +++ b/game/client/cstrike/VGUI/achievement_stats_summary.h @@ -0,0 +1,62 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef ACHIEVEMENTANDSTATSSUMMARY_H +#define ACHIEVEMENTANDSTATSSUMMARY_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/PropertyDialog.h> + +class CAchievementsPage; +class CLifetimeStatsPage; +class CMatchStatsPage; +class StatCard; +class CStatsSummary; + +const int cAchievementsDialogMinWidth = 1024; // don't show this screen for lower resolutions + +//----------------------------------------------------------------------------- +// Purpose: dialog for displaying the achievements/stats summary +//----------------------------------------------------------------------------- +class CAchievementAndStatsSummary : public vgui::PropertyDialog +{ + DECLARE_CLASS_SIMPLE( CAchievementAndStatsSummary, vgui::PropertyDialog ); + +public: + CAchievementAndStatsSummary(vgui::Panel *parent); + ~CAchievementAndStatsSummary(); + + virtual void Activate(); + + void OnKeyCodePressed( vgui::KeyCode code ) + { + if ( code == KEY_XBUTTON_B ) + { + Close(); + } + else + { + BaseClass::OnKeyCodePressed(code); + } + } + +protected: + virtual bool OnOK(bool applyOnly); + virtual void OnSizeChanged( int newWide, int newTall ); + virtual void ApplySchemeSettings( vgui::IScheme *pScheme ); + +private: + CAchievementsPage* m_pAchievementsPage; + CLifetimeStatsPage* m_pLifetimeStatsPage; + CMatchStatsPage* m_pMatchStatsPage; + CStatsSummary* m_pStatsSummary; +}; + + +#endif // ACHIEVEMENTANDSTATSSUMMARY_H |