aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/game_controls/IconPanel.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/game_controls/IconPanel.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/game_controls/IconPanel.cpp')
-rw-r--r--mp/src/game/client/game_controls/IconPanel.cpp136
1 files changed, 68 insertions, 68 deletions
diff --git a/mp/src/game/client/game_controls/IconPanel.cpp b/mp/src/game/client/game_controls/IconPanel.cpp
index 88fb8071..3688daed 100644
--- a/mp/src/game/client/game_controls/IconPanel.cpp
+++ b/mp/src/game/client/game_controls/IconPanel.cpp
@@ -1,68 +1,68 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#include "cbase.h"
-#include "IconPanel.h"
-#include "KeyValues.h"
-
-DECLARE_BUILD_FACTORY( CIconPanel );
-
-CIconPanel::CIconPanel( vgui::Panel *parent, const char *name ) : vgui::Panel( parent, name )
-{
- m_szIcon[0] = '\0';
- m_icon = NULL;
- m_bScaleImage = false;
-}
-
-void CIconPanel::ApplySettings( KeyValues *inResourceData )
-{
- Q_strncpy( m_szIcon, inResourceData->GetString( "icon", "" ), sizeof( m_szIcon ) );
-
- m_icon = gHUD.GetIcon( m_szIcon );
-
- m_bScaleImage = inResourceData->GetInt("scaleImage", 0);
-
- BaseClass::ApplySettings( inResourceData );
-}
-
-void CIconPanel::SetIcon( const char *szIcon )
-{
- Q_strncpy( m_szIcon, szIcon, sizeof(m_szIcon) );
-
- m_icon = gHUD.GetIcon( m_szIcon );
-}
-
-void CIconPanel::Paint()
-{
- BaseClass::Paint();
-
- if ( m_icon )
- {
- int x, y, w, h;
- GetBounds( x, y, w, h );
-
- if ( m_bScaleImage )
- {
- m_icon->DrawSelf( 0, 0, w, h, m_IconColor );
- }
- else
- {
- m_icon->DrawSelf( 0, 0, m_IconColor );
- }
- }
-}
-
-void CIconPanel::ApplySchemeSettings( vgui::IScheme *pScheme )
-{
- BaseClass::ApplySchemeSettings( pScheme );
-
- if ( m_szIcon[0] != '\0' )
- {
- m_icon = gHUD.GetIcon( m_szIcon );
- }
-
- SetFgColor( pScheme->GetColor( "FgColor", Color( 255, 255, 255, 255 ) ) );
-}
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#include "cbase.h"
+#include "IconPanel.h"
+#include "KeyValues.h"
+
+DECLARE_BUILD_FACTORY( CIconPanel );
+
+CIconPanel::CIconPanel( vgui::Panel *parent, const char *name ) : vgui::Panel( parent, name )
+{
+ m_szIcon[0] = '\0';
+ m_icon = NULL;
+ m_bScaleImage = false;
+}
+
+void CIconPanel::ApplySettings( KeyValues *inResourceData )
+{
+ Q_strncpy( m_szIcon, inResourceData->GetString( "icon", "" ), sizeof( m_szIcon ) );
+
+ m_icon = gHUD.GetIcon( m_szIcon );
+
+ m_bScaleImage = inResourceData->GetInt("scaleImage", 0);
+
+ BaseClass::ApplySettings( inResourceData );
+}
+
+void CIconPanel::SetIcon( const char *szIcon )
+{
+ Q_strncpy( m_szIcon, szIcon, sizeof(m_szIcon) );
+
+ m_icon = gHUD.GetIcon( m_szIcon );
+}
+
+void CIconPanel::Paint()
+{
+ BaseClass::Paint();
+
+ if ( m_icon )
+ {
+ int x, y, w, h;
+ GetBounds( x, y, w, h );
+
+ if ( m_bScaleImage )
+ {
+ m_icon->DrawSelf( 0, 0, w, h, m_IconColor );
+ }
+ else
+ {
+ m_icon->DrawSelf( 0, 0, m_IconColor );
+ }
+ }
+}
+
+void CIconPanel::ApplySchemeSettings( vgui::IScheme *pScheme )
+{
+ BaseClass::ApplySchemeSettings( pScheme );
+
+ if ( m_szIcon[0] != '\0' )
+ {
+ m_icon = gHUD.GetIcon( m_szIcon );
+ }
+
+ SetFgColor( pScheme->GetColor( "FgColor", Color( 255, 255, 255, 255 ) ) );
+}