void CASW_Difficulty_Chooser::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); vgui::HFont defaultfont = pScheme->GetFont( "DefaultButton", IsProportional() ); m_pCancelButton->SetFont(defaultfont); SetPaintBackgroundType(2); }
void PlayerListPanel::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); LoadControlSettings( "resource/ui/PlayerListPanel.res" ); vgui::HFont DefaultFont = pScheme->GetFont( "Default", IsProportional() ); m_pPlayerHeader->SetFont(DefaultFont); m_pPlayerHeader->SetFgColor(Color(255,255,255,255)); m_pMarinesHeader->SetFont(DefaultFont); m_pMarinesHeader->SetFgColor(Color(255,255,255,255)); m_pPingHeader->SetFont(DefaultFont); m_pPingHeader->SetFgColor(Color(255,255,255,255)); SetPaintBackgroundEnabled(true); SetPaintBackgroundType(0); // more translucent when viewed ingame if (GetParent() && GetParent()->GetParent() && GetParent()->GetParent() == GetClientMode()->GetViewport()) SetBgColor(Color(0,0,0,128)); else SetBgColor(Color(0,0,0,220)); m_pLeaderButtonsBackground->SetPaintBackgroundEnabled(false); // temp removal of this m_pLeaderButtonsBackground->SetPaintBackgroundType(0); m_pLeaderButtonsBackground->SetBgColor(Color(0,0,0,128)); m_pStartSavedCampaignVoteButton->m_pLabel->SetFont(DefaultFont); Color col_white(255,255,255,255); Color col_grey(128,128,128,255); m_pStartSavedCampaignVoteButton->SetColors(col_white, col_grey, col_white, col_grey, col_white); }
void FontTestPanel::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundEnabled(true); SetPaintBackgroundType(0); SetBgColor(Color(0,0,0,255)); for (int i=0;i<ASW_FONT_TEST_LABELS;i++) { m_pLabel[i]->SetFgColor(pScheme->GetColor("White", Color(255,255,255,255))); } int k=0; SetLabelFont(pScheme, k++, "Default", "Default 123456 NO", false); SetLabelFont(pScheme, k++, "Default", "Default proportional 123456 YES", true); SetLabelFont(pScheme, k++, "DefaultUnderline", "DefaultUnderline 123456 NO", false); SetLabelFont(pScheme, k++, "DefaultUnderline", "DefaultUnderline proportional 123456 YES", true); SetLabelFont(pScheme, k++, "DefaultSmall", "DefaultSmall 123456 NO", false); SetLabelFont(pScheme, k++, "DefaultSmall", "DefaultSmall proportional 123456 YES", true); SetLabelFont(pScheme, k++, "DefaultMedium", "DefaultMedium 123456 NO", false); SetLabelFont(pScheme, k++, "DefaultMedium", "DefaultMedium proportional 123456 YES", true); SetLabelFont(pScheme, k++, "DefaultVerySmall", "DefaultVerySmall 123456 NO", false); SetLabelFont(pScheme, k++, "DefaultVerySmall", "DefaultVerySmall proportional 123456 YES", true); SetLabelFont(pScheme, k++, "DefaultLarge", "DefaultLarge 123456 NO", false); SetLabelFont(pScheme, k++, "DefaultLarge", "DefaultLarge proportional 123456 YES", true); SetLabelFont(pScheme, k++, "DefaultExtraLarge", "DefaultExtraLarge 123456 NO", false); SetLabelFont(pScheme, k++, "DefaultExtraLarge", "DefaultExtraLarge proportional 123456 YES", true); SetLabelFont(pScheme, k++, "DefaultLarge", "DefaultLarge 123456 NO", false); SetLabelFont(pScheme, k++, "DefaultLarge", "DefaultLarge proportional 123456 YES", true); SetLabelFont(pScheme, k++, "Sansman8", "Sansman8 123456 NO", false); SetLabelFont(pScheme, k++, "Sansman8", "Sansman8 proportional 123456 YES", true); SetLabelFont(pScheme, k++, "Sansman10", "Sansman10 123456 NO", false); SetLabelFont(pScheme, k++, "Sansman10", "Sansman10 proportional 123456 YES", true); SetLabelFont(pScheme, k++, "Sansman12", "Sansman12 123456 NO", false); SetLabelFont(pScheme, k++, "Sansman12", "Sansman12 proportional 123456 YES", true); SetLabelFont(pScheme, k++, "Sansman14", "Sansman14 123456 NO", false); SetLabelFont(pScheme, k++, "Sansman14", "Sansman14 proportional 123456 YES", true); SetLabelFont(pScheme, k++, "Sansman16", "Sansman16 123456 NO", false); SetLabelFont(pScheme, k++, "Sansman16", "Sansman16 proportional 123456 YES", true); SetLabelFont(pScheme, k++, "Sansman18", "Sansman18 123456 NO", false); SetLabelFont(pScheme, k++, "Sansman18", "Sansman18 proportional 123456 YES", true); SetLabelFont(pScheme, k++, "Sansman20", "Sansman20 123456 NO", false); SetLabelFont(pScheme, k++, "Sansman20", "Sansman20 proportional 123456 YES", true); SetLabelFont(pScheme, k++, "CleanHUD", "CleanHUD 123456 NO", false); SetLabelFont(pScheme, k++, "CleanHUD", "CleanHUD proportional 123456 YES", true); SetLabelFont(pScheme, k++, "Courier", "Courier 123456 NO", false); SetLabelFont(pScheme, k++, "Courier", "Courier proportional 123456 YES", true); SetLabelFont(pScheme, k++, "SmallCourier", "SmallCourier 123456 NO", false); SetLabelFont(pScheme, k++, "SmallCourier", "SmallCourier proportional 123456 YES", true); SetLabelFont(pScheme, k++, "Verdana", "Verdana 123456 NO", false); SetLabelFont(pScheme, k++, "Verdana", "Verdana proportional 123456 YES", true); SetLabelFont(pScheme, k++, "VerdanaSmall", "VerdanaSmall 123456 NO", false); SetLabelFont(pScheme, k++, "VerdanaSmall", "VerdanaSmall proportional 123456 YES", true); SetLabelFont(pScheme, k++, "CampaignTitle", "CampaignTitle 123456 NO", false); SetLabelFont(pScheme, k++, "CampaignTitle", "CampaignTitle proportional 123456 YES", true); SetLabelFont(pScheme, k++, "MainMenu", "MainMenu 123456 NO", false); SetLabelFont(pScheme, k++, "MainMenu", "MainMenu proportional 123456 YES", true); SetLabelFont(pScheme, k++, "MissionChooserFont", "MissionChooserFont 123456 NO", false); SetLabelFont(pScheme, k++, "MissionChooserFont", "MissionChooserFont proportional 123456 YES", true); }
void CHudChat::ApplySchemeSettings( vgui::IScheme *pScheme ) { if ( m_bIntermissionSet ) LoadControlSettings( "resource/UI/BaseChat_Intermission.res" ); else LoadControlSettings( "resource/UI/BaseChat.res" ); m_IScheme = pScheme; // Skip over the BaseChat so we don't reload non-intermission settings EditablePanel::ApplySchemeSettings( pScheme ); SetPaintBackgroundType( 2 ); SetPaintBorderEnabled( true ); SetPaintBackgroundEnabled( true ); SetKeyBoardInputEnabled( false ); SetMouseInputEnabled( false ); m_nVisibleHeight = 0; Color cColor = pScheme->GetColor( "DullWhite", GetBgColor() ); SetBgColor( Color ( cColor.r(), cColor.g(), cColor.b(), CHAT_HISTORY_ALPHA ) ); GetChatHistory()->SetVerticalScrollbar( false ); }
void CASW_VGUI_Computer_Menu::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundType(0); SetPaintBackgroundEnabled(false); SetBgColor( Color(0,0,0,0) ); SetMouseInputEnabled(true); vgui::HFont LabelFont = pScheme->GetFont( "Default", IsProportional() ); // hide the menu at first Color white(255,255,255,255); Color blue(19,20,40, 255); for (int i=0;i<ASW_COMPUTER_MAX_MENU_ITEMS;i++) { //if (!m_bSetAlpha) //{ m_pMenuLabel[i]->SetAlpha(0); m_pMenuIcon[i]->SetAlpha(0); m_pMenuIconShadow[i]->SetAlpha(0); //} m_pMenuLabel[i]->SetFont(LabelFont); m_pMenuLabel[i]->SetPaintBackgroundEnabled(true); m_pMenuLabel[i]->SetContentAlignment(vgui::Label::a_center); m_pMenuLabel[i]->SetBgColor(Color(19,20,40,255)); m_pMenuLabel[i]->SetColors(white, white, white, white, blue); m_pMenuLabel[i]->SetBorders("TitleButtonBorder", "TitleButtonBorder"); m_pMenuLabel[i]->SetPaintBackgroundType(2); } vgui::HFont DefaultFont = pScheme->GetFont( "Default", IsProportional() ); vgui::HFont XLargeFont = pScheme->GetFont( "DefaultExtraLarge", IsProportional() ); m_pAccessDeniedLabel->SetFont(XLargeFont); m_pAccessDeniedLabel->SetFgColor(Color(255,0,0,255)); m_pInsufficientRightsLabel->SetFont(DefaultFont); m_pInsufficientRightsLabel->SetFgColor(Color(255,255,255,255)); //if (!m_bSetAlpha) //{ m_pBlackBar[0]->SetAlpha(0); m_pBlackBar[1]->SetAlpha(0); m_pAccessDeniedLabel->SetAlpha(0); m_pInsufficientRightsLabel->SetAlpha(0); //} if (!m_bSetAlpha) { m_bSetAlpha = true; } else { if (m_hCurrentPage.Get()) HideMenu(true); else ShowMenu(); // makes sure the right things are faded in } }
void CASW_VGUI_Computer_Weather::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundType(0); SetPaintBackgroundEnabled(false); SetBgColor( Color(0,0,0,0) ); SetMouseInputEnabled(true); vgui::HFont LabelFont = pScheme->GetFont( "Default", IsProportional() ); m_pWarningLabel->SetFont(LabelFont); m_pBackButton->SetPaintBackgroundEnabled(true); m_pBackButton->SetFont(LabelFont); m_pBackButton->SetPaintBackgroundEnabled(true); m_pBackButton->SetContentAlignment(vgui::Label::a_center); m_pBackButton->SetBorders("TitleButtonBorder", "TitleButtonBorder"); Color white(255,255,255,255); Color blue(19,20,40, 255); m_pBackButton->SetColors(white, white, white, white, blue); m_pBackButton->SetPaintBackgroundType(2); vgui::HFont LargeTitleFont = pScheme->GetFont( "DefaultLarge", IsProportional() ); //vgui::HFont TitleFont = pScheme->GetFont("Default"); m_pTitleLabel->SetFgColor(Color(255,255,255,255)); m_pTitleLabel->SetFont(LargeTitleFont); m_pTitleLabel->SetContentAlignment(vgui::Label::a_center); for (int i=0; i<ASW_WEATHER_ENTRIES; i++) { m_pWeatherLabel[i]->SetFont(LabelFont); m_pWeatherValue[i]->SetFont(LabelFont); ApplySettingAndFadeLabelIn(m_pWeatherLabel[i]); ApplySettingAndFadeLabelIn(m_pWeatherValue[i]); } ApplySettingAndFadeLabelIn(m_pWarningLabel); m_pTitleIcon->SetImage("swarm/Computer/IconWeather"); m_pTitleIconShadow->SetImage("swarm/Computer/IconWeather"); // fade them in if (!m_bSetAlpha) { m_bSetAlpha = true; m_pBackButton->SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(m_pBackButton, "Alpha", 255, 0, 1.0f, vgui::AnimationController::INTERPOLATOR_LINEAR); m_pTitleIcon->SetAlpha(0); m_pTitleIconShadow->SetAlpha(0); m_pTitleLabel->SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(m_pTitleLabel, "Alpha", 255, 0.2f, 1.0f, vgui::AnimationController::INTERPOLATOR_LINEAR); vgui::GetAnimationController()->RunAnimationCommand(m_pTitleIcon, "Alpha", 255, 0.2f, 1.0f, vgui::AnimationController::INTERPOLATOR_LINEAR); vgui::GetAnimationController()->RunAnimationCommand(m_pTitleIconShadow, "Alpha", 30, 0.2f, 1.0f, vgui::AnimationController::INTERPOLATOR_LINEAR); } }
void CASW_VGUI_Skip_Intro::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundType(0); SetPaintBackgroundEnabled(false); SetBgColor( Color(0,0,0,255) ); SetMouseInputEnabled(true); }
void CASW_VGUI_Computer_Weather::ASWInit() { SetPaintBackgroundType(0); SetPaintBackgroundEnabled(false); SetBgColor( Color(0,0,0,0) ); SetAlpha(255); CLocalPlayerFilter filter; C_BaseEntity::EmitSound( filter, -1 /*SOUND_FROM_LOCAL_PLAYER*/, "ASWComputer.AtmosphericReport" ); }
void CASW_Medal_Collection_Frame::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); m_pCancelButton->SetFont( pScheme->GetFont( "DefaultButton", IsProportional() ) ); SetPaintBackgroundType(2); //m_pCancelButton->SetDefaultBorder(pScheme->GetBorder("ButtonBorder")); //m_pCancelButton->SetDepressedBorder(pScheme->GetBorder("ButtonBorder")); //m_pCancelButton->SetKeyFocusBorder(pScheme->GetBorder("ButtonBorder")); //m_pCancelButton->SetDefaultColor(Color(255,128,0,255), Color(0,0,0,255)); //m_pCancelButton->SetArmedColor(Color(255,128,0,255), Color(65,74,96,255)); //m_pCancelButton->SetDepressedColor(Color(255,128,0,255), Color(65,74,96,255)); }
void CASW_VGUI_Computer_Menu::ASWInit() { SetPaintBackgroundType(0); SetPaintBackgroundEnabled(false); SetBgColor( Color(0,0,0,0) ); SetAlpha(255); SetIcons(); m_pBlackBar[0]->SetImage("swarm/HUD/ASWHUDBlackBar"); m_pBlackBar[1]->SetImage("swarm/HUD/ASWHUDBlackBar"); m_pAccessDeniedLabel->SetAlpha(0); m_pInsufficientRightsLabel->SetAlpha(0); }
void CASW_Hud_Powerups::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetBgColor( Color( 255, 255, 255, 200 ) ); SetPaintBackgroundType(0); SetPaintBackgroundEnabled( false ); m_pStringLabel->SetFgColor(Color(200,200,200,255)); m_pStringLabel->SetFont( pScheme->GetFont( "DefaultSmall", IsProportional() ) );//VerdanaSmall m_pStringLabel->SetContentAlignment( vgui::Label::a_west ); SetMouseInputEnabled(false); }
void CASW_VGUI_Computer_Splash::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundType(0); SetPaintBackgroundEnabled(false); SetBgColor( Color(0,0,0,0) ); SetMouseInputEnabled(true); if (!m_bSetAlpha) { m_pLogoImage->SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(m_pLogoImage, "Alpha", 255, 0.9f, 1.7f, vgui::AnimationController::INTERPOLATOR_LINEAR); m_pLogoGlitchImage->SetAlpha(0); m_pSloganLabel->SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(m_pSloganLabel, "Alpha", 255, 0.9f, 1.7f, vgui::AnimationController::INTERPOLATOR_LINEAR); m_pSynTekLabel->SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(m_pSynTekLabel, "Alpha", 255, 0.9f, 1.7f, vgui::AnimationController::INTERPOLATOR_LINEAR); } vgui::HFont SloganFont = pScheme->GetFont( "CleanHUD", IsProportional() ); m_pSloganLabel->SetFont(SloganFont); m_pSloganLabel->SetFgColor(Color(255,255,255,255)); vgui::HFont HeaderFont = pScheme->GetFont( "DefaultLarge", IsProportional() ); m_pSynTekLabel->SetFont(HeaderFont); m_pSynTekLabel->SetFgColor(Color(255,255,255,255)); vgui::HFont ScrollerFont = pScheme->GetFont( "Courier", IsProportional() ); for (int i=0;i<ASW_SPLASH_SCROLL_LINES;i++) { m_pScrollLine[i]->SetFont(ScrollerFont); m_pScrollLine[i]->SetFgColor(Color(19,21,41,255)); m_pScrollLine[i]->SetAlpha(0); // it's okay for these to be hidden if player changes res and this gets called again } if (m_bSlidOut) { m_pSloganLabel->SetAlpha(0); m_pLogoGlitchImage->SetAlpha(0); } m_bSetAlpha = true; }
void CASW_VGUI_Door_Tooltip::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundType(0); SetPaintBackgroundEnabled(true); SetBgColor( Color(16,16,16,192) ); if ( GetDoor() ) { SetAlpha(200); } else { SetAlpha(0); } SetMouseInputEnabled(false); }
void CASW_VGUI_Computer_Splash::ASWInit() { m_pLogoImage->SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(m_pLogoImage, "Alpha", 255, 0.3f, 1.7f, vgui::AnimationController::INTERPOLATOR_LINEAR); m_pLogoGlitchImage->SetAlpha(0); SetPaintBackgroundType(0); SetPaintBackgroundEnabled(false); SetBgColor( Color(0,0,0,0) ); SetAlpha(255); m_pSloganLabel->SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(m_pSloganLabel, "Alpha", 255, 0.8f, 1.7f, vgui::AnimationController::INTERPOLATOR_LINEAR); m_pSynTekLabel->SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(m_pSynTekLabel, "Alpha", 255, 0.3f, 1.7f, vgui::AnimationController::INTERPOLATOR_LINEAR); }
void CASW_VGUI_Computer_Frame::ASWInit() { SetPaintBackgroundType(0); SetPaintBackgroundEnabled(true); SetBgColor( Color(0,0,0,255) ); m_pBackdropImage->SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(m_pBackdropImage, "Alpha", 255, 0, 2.0f, vgui::AnimationController::INTERPOLATOR_LINEAR); SetAlpha(255); if (IsPDA()) { m_pSplash = NULL; } else { m_pSplash = new CASW_VGUI_Computer_Splash(this, "ComputerSplash", m_pHackComputer); m_pSplash->ASWInit(); m_pSplash->SetPos(0,0); m_pCurrentPanel = m_pSplash; } m_iScanHeight = 0; m_pMenuPanel = new CASW_VGUI_Computer_Menu(this, "ComputerMenu", m_pHackComputer); m_pMenuPanel->ASWInit(); m_pMenuPanel->SetPos(0,0); if (IsPDA()) { // hm, not true.. we want the first panel to be the mail one m_pCurrentPanel = m_pMenuPanel; } if (GetControllerFocus()) { GetControllerFocus()->AddToFocusList(m_pLogoffLabel); GetControllerFocus()->SetFocusPanel(m_pLogoffLabel); } vgui::GetAnimationController()->RunAnimationCommand(m_pLogoffLabel, "Alpha", 255, 0.0f, 1.0f, vgui::AnimationController::INTERPOLATOR_LINEAR); }
void CASW_VGUI_Computer_Frame::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundType(0); SetPaintBackgroundEnabled(true); SetBgColor( Color(0,0,0,255) ); SetMouseInputEnabled(true); vgui::HFont LabelFont = pScheme->GetFont( "Default", IsProportional() ); Color white(255,255,255,255); Color blue(19,20,40, 255); m_pLogoffLabel->SetFont(LabelFont); m_pLogoffLabel->SetPaintBackgroundEnabled(true); m_pLogoffLabel->SetContentAlignment(vgui::Label::a_center); m_pLogoffLabel->SetBgColor(Color(19,20,40,255)); m_pLogoffLabel->SetBorders("TitleButtonBorder", "TitleButtonBorder"); m_pLogoffLabel->SetColors(white, white, white, white, blue); m_pLogoffLabel->SetPaintBackgroundType(2); // fade scanlines in if (!m_bSetAlpha) { m_bSetAlpha = true; m_pScan[0]->SetAlpha(0); m_pScan[1]->SetAlpha(0); m_pScan[2]->SetAlpha(0); // alphas were 85 170 255 vgui::GetAnimationController()->RunAnimationCommand(m_pScan[0], "Alpha", 42, 0, 2.0f, vgui::AnimationController::INTERPOLATOR_LINEAR); vgui::GetAnimationController()->RunAnimationCommand(m_pScan[1], "Alpha", 85, 0, 2.0f, vgui::AnimationController::INTERPOLATOR_LINEAR); vgui::GetAnimationController()->RunAnimationCommand(m_pScan[2], "Alpha", 128, 0, 2.0f, vgui::AnimationController::INTERPOLATOR_LINEAR); m_pBackdropImage->SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(m_pBackdropImage, "Alpha", 255, 0, 2.0f, vgui::AnimationController::INTERPOLATOR_LINEAR); } else { m_pScan[0]->SetAlpha(42); m_pScan[1]->SetAlpha(85); m_pScan[2]->SetAlpha(128); m_pBackdropImage->SetAlpha(255); } }
void CASW_VGUI_Stylin_Cam::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundType(0); SetPaintBackgroundEnabled(false); SetBgColor( Color(0,0,0,0) ); SetAlpha(255); SetMouseInputEnabled(false); m_pCameraImage->SetAlpha( 0 ); m_pCameraImage->SetImage( "swarm/Computer/ComputerCamera" ); m_pCommanderImage->SetAlpha( 0 ); m_pCommanderImage->SetImage( "briefing/face_pilot" ); m_pCommanderFlash->SetAlpha( 255 ); m_pCommanderFlash->SetImage( "white" ); m_bFadingInCommanderFace = false; m_bFadingOutCommanderFace = false; }
void CEditorRoot::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundEnabled(true); SetPaintBorderEnabled(false); SetPaintEnabled(true); SetCloseButtonVisible(false); SetSizeable(false); SetMoveable(false); InitColors(); SetTitle( "", true ); SetTitleBarVisible( false ); m_pLabelTitle->SetText( GetEditorTitle() ); m_pLabelTitle->SetFont( pScheme->GetFont( "UiBold", false ) ); SetPaintBackgroundType( 0 ); OnShaderNameChanged(); GenerateFonts(pScheme); }
void CASW_VGUI_Queen_Health_Panel::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundType(0); SetPaintBackgroundEnabled(false); SetBgColor( Color(0,0,0,0) ); SetAlpha(255); SetMouseInputEnabled(false); m_pBackdrop->SetPaintBackgroundType(0); m_pBackdrop->SetPaintBackgroundEnabled(true); m_pBackdrop->SetBgColor(Color(0, 0, 0, 64)); m_pBackdrop->SetVisible(false); for (int i=0;i<ASW_QUEEN_HEALTH_BARS;i++) { m_pHealthBar[i]->SetPaintBackgroundType(0); m_pHealthBar[i]->SetPaintBackgroundEnabled(true); m_pHealthBar[i]->SetBgColor(Color(255, 32, 0, 64)); m_pHealthBar[i]->SetVisible(false); } }
void CASW_VGUI_Info_Message::ApplySchemeSettings(vgui::IScheme *pScheme) { BaseClass::ApplySchemeSettings(pScheme); SetPaintBackgroundType(0); SetPaintBackgroundEnabled(true); SetBgColor( Color(16,16,64,128) ); for (int i=0;i<4;i++) { m_pLine[i]->SetFgColor(Color(255,255,255,255)); } m_pOkayButton->SetAlpha(255); m_pOkayButton->SetPaintBackgroundEnabled(true); m_pOkayButton->SetContentAlignment(vgui::Label::a_center); m_pOkayButton->SetBorders("TitleButtonBorder", "TitleButtonBorder"); Color white(255,255,255,255); Color blue(19,20,40, 255); m_pOkayButton->SetColors(white, white, white, white, blue); m_pOkayButton->SetPaintBackgroundType(2); if (m_pLogButton) { m_pLogButton->SetAlpha(255); m_pLogButton->SetPaintBackgroundEnabled(true); m_pLogButton->SetContentAlignment(vgui::Label::a_center); m_pLogButton->SetBorders("TitleButtonBorder", "TitleButtonBorder"); Color white(255,255,255,255); Color blue(19,20,40, 255); m_pLogButton->SetColors(white, white, white, white, blue); m_pLogButton->SetPaintBackgroundType(2); } SetAlpha(0); vgui::GetAnimationController()->RunAnimationCommand(this, "Alpha", 255, 0.0f, 0.3f, vgui::AnimationController::INTERPOLATOR_LINEAR); }
void CBaseHudChat::ApplySchemeSettings( vgui::IScheme *pScheme ) { LoadControlSettings( "resource/UI/BaseChat.res" ); BaseClass::ApplySchemeSettings( pScheme ); SetPaintBackgroundType( 2 ); SetPaintBorderEnabled( true ); SetPaintBackgroundEnabled( true ); SetKeyBoardInputEnabled( false ); SetMouseInputEnabled( false ); m_nVisibleHeight = 0; #ifdef HL1_CLIENT_DLL SetBgColor( Color( 0, 0, 0, 0 ) ); SetFgColor( Color( 0, 0, 0, 0 ) ); #endif Color cColor = pScheme->GetColor( "DullWhite", GetBgColor() ); SetBgColor( Color ( cColor.r(), cColor.g(), cColor.b(), CHAT_HISTORY_ALPHA ) ); GetChatHistory()->SetVerticalScrollbar( false ); }
virtual void PaintBackground() { SetBgColor( Color(0, 0, 0, 128) ); SetPaintBackgroundType( 2 ); BaseClass::PaintBackground(); }