From f56bb35301836e56582a575a75864392a0177875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20P=2E=20Tjern=C3=B8?= Date: Mon, 2 Dec 2013 19:31:46 -0800 Subject: Fix line endings. WHAMMY. --- .../shared/cs_achievements_and_stats_interface.cpp | 160 ++++++++++----------- 1 file changed, 80 insertions(+), 80 deletions(-) (limited to 'mp/src/game/shared/cs_achievements_and_stats_interface.cpp') diff --git a/mp/src/game/shared/cs_achievements_and_stats_interface.cpp b/mp/src/game/shared/cs_achievements_and_stats_interface.cpp index 4b3cf879..66665c16 100644 --- a/mp/src/game/shared/cs_achievements_and_stats_interface.cpp +++ b/mp/src/game/shared/cs_achievements_and_stats_interface.cpp @@ -1,80 +1,80 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// -// -// Purpose: -// -//============================================================================= - -#include "cbase.h" - -#include "cs_achievements_and_stats_interface.h" -#include "baseachievement.h" -#include "GameEventListener.h" -#include "hl2orange.spa.h" -#include "iachievementmgr.h" -#include "utlmap.h" -#include "steam/steam_api.h" - -#include "vgui_controls/Panel.h" -#include "vgui_controls/PHandle.h" -#include "vgui_controls/MenuItem.h" -#include "vgui_controls/MessageDialog.h" - -#include "cs_gamestats_shared.h" -#include "../client/cstrike/VGUI/achievement_stats_summary.h" -#include "vgui/IInput.h" -#include "vgui/ILocalize.h" -#include "vgui/IPanel.h" -#include "vgui/ISurface.h" -#include "vgui/ISystem.h" -#include "vgui/IVGui.h" - - -#if defined(CSTRIKE_DLL) && defined(CLIENT_DLL) - -CSAchievementsAndStatsInterface::CSAchievementsAndStatsInterface() : AchievementsAndStatsInterface() -{ - m_pAchievementAndStatsSummary = NULL; - - g_pAchievementsAndStatsInterface = this; -} - -void CSAchievementsAndStatsInterface::CreatePanel( vgui::Panel* pParent ) -{ - // Create achievement & stats dialog if not already created - if ( !m_pAchievementAndStatsSummary ) - { - m_pAchievementAndStatsSummary = new CAchievementAndStatsSummary(NULL); - } - - if ( m_pAchievementAndStatsSummary ) - { - m_pAchievementAndStatsSummary->SetParent(pParent); - } -} - -void CSAchievementsAndStatsInterface::DisplayPanel() -{ - // Position & show dialog - PositionDialog(m_pAchievementAndStatsSummary); - m_pAchievementAndStatsSummary->Activate(); - - //Make sure the top of the page appears on the screen (for video modes such as 1280x720). - int x, y; - m_pAchievementAndStatsSummary->GetPos( x, y ); - if ( y < 0 ) - { - m_pAchievementAndStatsSummary->SetPos( x, 0 ); - } -} - -void CSAchievementsAndStatsInterface::ReleasePanel() -{ - // Make sure the BasePanel doesn't try to delete this, because it doesn't really own it. - if ( m_pAchievementAndStatsSummary ) - { - m_pAchievementAndStatsSummary->SetParent((vgui::Panel*)NULL); - } -} - -#endif - +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#include "cbase.h" + +#include "cs_achievements_and_stats_interface.h" +#include "baseachievement.h" +#include "GameEventListener.h" +#include "hl2orange.spa.h" +#include "iachievementmgr.h" +#include "utlmap.h" +#include "steam/steam_api.h" + +#include "vgui_controls/Panel.h" +#include "vgui_controls/PHandle.h" +#include "vgui_controls/MenuItem.h" +#include "vgui_controls/MessageDialog.h" + +#include "cs_gamestats_shared.h" +#include "../client/cstrike/VGUI/achievement_stats_summary.h" +#include "vgui/IInput.h" +#include "vgui/ILocalize.h" +#include "vgui/IPanel.h" +#include "vgui/ISurface.h" +#include "vgui/ISystem.h" +#include "vgui/IVGui.h" + + +#if defined(CSTRIKE_DLL) && defined(CLIENT_DLL) + +CSAchievementsAndStatsInterface::CSAchievementsAndStatsInterface() : AchievementsAndStatsInterface() +{ + m_pAchievementAndStatsSummary = NULL; + + g_pAchievementsAndStatsInterface = this; +} + +void CSAchievementsAndStatsInterface::CreatePanel( vgui::Panel* pParent ) +{ + // Create achievement & stats dialog if not already created + if ( !m_pAchievementAndStatsSummary ) + { + m_pAchievementAndStatsSummary = new CAchievementAndStatsSummary(NULL); + } + + if ( m_pAchievementAndStatsSummary ) + { + m_pAchievementAndStatsSummary->SetParent(pParent); + } +} + +void CSAchievementsAndStatsInterface::DisplayPanel() +{ + // Position & show dialog + PositionDialog(m_pAchievementAndStatsSummary); + m_pAchievementAndStatsSummary->Activate(); + + //Make sure the top of the page appears on the screen (for video modes such as 1280x720). + int x, y; + m_pAchievementAndStatsSummary->GetPos( x, y ); + if ( y < 0 ) + { + m_pAchievementAndStatsSummary->SetPos( x, 0 ); + } +} + +void CSAchievementsAndStatsInterface::ReleasePanel() +{ + // Make sure the BasePanel doesn't try to delete this, because it doesn't really own it. + if ( m_pAchievementAndStatsSummary ) + { + m_pAchievementAndStatsSummary->SetParent((vgui::Panel*)NULL); + } +} + +#endif + -- cgit v1.2.3