mirror of
https://github.com/celisej567/source-engine.git
synced 2026-09-19 20:09:06 +03:00
upload "kind" alien swarm
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#include "cbase.h"
|
||||
#include "IconPanel.h"
|
||||
#include "iconpanel.h"
|
||||
#include "KeyValues.h"
|
||||
|
||||
// NOTE: This has to be the last file included!
|
||||
#include "tier0/memdbgon.h"
|
||||
|
||||
|
||||
DECLARE_BUILD_FACTORY( CIconPanel );
|
||||
|
||||
CIconPanel::CIconPanel( vgui::Panel *parent, const char *name ) : vgui::Panel( parent, name )
|
||||
@@ -21,9 +25,9 @@ void CIconPanel::ApplySettings( KeyValues *inResourceData )
|
||||
{
|
||||
Q_strncpy( m_szIcon, inResourceData->GetString( "icon", "" ), sizeof( m_szIcon ) );
|
||||
|
||||
m_icon = gHUD.GetIcon( m_szIcon );
|
||||
m_icon = HudIcons().GetIcon( m_szIcon );
|
||||
|
||||
m_bScaleImage = inResourceData->GetInt("scaleImage", 0);
|
||||
m_bScaleImage = inResourceData->GetBool( "scaleImage", false );
|
||||
|
||||
BaseClass::ApplySettings( inResourceData );
|
||||
}
|
||||
@@ -32,7 +36,7 @@ void CIconPanel::SetIcon( const char *szIcon )
|
||||
{
|
||||
Q_strncpy( m_szIcon, szIcon, sizeof(m_szIcon) );
|
||||
|
||||
m_icon = gHUD.GetIcon( m_szIcon );
|
||||
m_icon = HudIcons().GetIcon( m_szIcon );
|
||||
}
|
||||
|
||||
void CIconPanel::Paint()
|
||||
@@ -61,7 +65,7 @@ void CIconPanel::ApplySchemeSettings( vgui::IScheme *pScheme )
|
||||
|
||||
if ( m_szIcon[0] != '\0' )
|
||||
{
|
||||
m_icon = gHUD.GetIcon( m_szIcon );
|
||||
m_icon = HudIcons().GetIcon( m_szIcon );
|
||||
}
|
||||
|
||||
SetFgColor( pScheme->GetColor( "FgColor", Color( 255, 255, 255, 255 ) ) );
|
||||
|
||||
Reference in New Issue
Block a user