本文整理汇总了C++中ConVar::GetColor方法的典型用法代码示例。如果您正苦于以下问题:C++ ConVar::GetColor方法的具体用法?C++ ConVar::GetColor怎么用?C++ ConVar::GetColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConVar
的用法示例。
在下文中一共展示了ConVar::GetColor方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetGrenadeColor
Color C_ASW_HealGrenade_Projectile::GetGrenadeColor( void )
{
return asw_healgrenade.GetColor();
}
示例2: ApplySchemeSettings
void CNB_Header_Footer::ApplySchemeSettings( vgui::IScheme *pScheme )
{
BaseClass::ApplySchemeSettings( pScheme );
LoadControlSettings( "resource/ui/nb_header_footer.res" );
// TODO: Different image in widescreen to avoid stretching
// this image is no longer used
//m_pBackgroundImage->SetImage( "lobby/swarm_background01" );
switch( m_nTitleStyle )
{
case NB_TITLE_BRIGHT: m_pTitle->SetFgColor( Color( 255, 255, 255, 255 ) ); break;
case NB_TITLE_MEDIUM: m_pTitle->SetFgColor( Color( 47, 79, 111, 255 ) ); break;
}
switch( m_nBackgroundStyle )
{
case NB_BACKGROUND_DARK:
{
m_pBackground->SetVisible( true );
m_pBackgroundImage->SetVisible( false );
m_pBackground->SetBgColor( Color( 0, 0, 0, 230 ) );
break;
}
case NB_BACKGROUND_TRANSPARENT_BLUE:
{
m_pBackground->SetVisible( true );
m_pBackgroundImage->SetVisible( false );
m_pBackground->SetBgColor( asw_background_color.GetColor() );
break;
}
case NB_BACKGROUND_TRANSPARENT_RED:
{
m_pBackground->SetVisible( true );
m_pBackgroundImage->SetVisible( false );
m_pBackground->SetBgColor( Color( 128, 0, 0, 128 ) );
break;
}
case NB_BACKGROUND_BLUE:
{
m_pBackground->SetVisible( true );
m_pBackgroundImage->SetVisible( false );
m_pBackground->SetBgColor( Color( 16, 32, 46, 230 ) );
break;
}
case NB_BACKGROUND_IMAGE:
{
m_pBackground->SetVisible( false );
m_pBackgroundImage->SetVisible( true );
break;
}
case NB_BACKGROUND_NONE:
{
m_pBackground->SetVisible( false );
m_pBackgroundImage->SetVisible( false );
}
}
m_pTopBar->SetVisible( m_bHeaderEnabled );
m_pTopBarLine->SetVisible( m_bHeaderEnabled );
m_pBottomBar->SetVisible( m_bFooterEnabled );
m_pBottomBarLine->SetVisible( m_bFooterEnabled );
m_pGradientBar->SetVisible( m_bGradientBarEnabled );
}