vgui2/src/Scheme.cpp
HScheme CSchemeManager::GetScheme(const char *tag)
{
	for (int i=1;i<m_Schemes.Count();i++)
	{
		if ( !stricmp(tag,m_Schemes[i]->GetName()) )
		{
			return i;
		}
	}
	return 1; // default scheme
}
//-----------------------------------------------------------------------------
// Purpose: returns a handle to the scheme identified by "tag"
//-----------------------------------------------------------------------------
returns a handle to the scheme identified by "tag"
returns a handle to the scheme identified by " tag "
HScheme CSchemeManager::GetScheme(const char *tag)
{
	for (int i=1;i<m_Schemes.Count();i++)
	{
		if ( !stricmp(tag,m_Schemes[i]->GetName()) )
		{
			return i;
		}
	}
	return 1; 
}
HScheme CSchemeManager :: GetScheme ( const char * tag ) { for ( int i = 1 ; i < m_Schemes . Count ( ) ; i ++ ) { if ( ! stricmp ( tag , m_Schemes [ i ] -> GetName ( ) ) ) { return i ; } } return 1 ; }
Purpose: returns a handle to the scheme identified by "tag"
Purpose : returns a handle to the scheme identified by " tag "
// default scheme