//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void ClientModeTFNormal::Init() { m_pMenuEngyBuild = ( CHudMenuEngyBuild * )GET_HUDELEMENT( CHudMenuEngyBuild ); Assert( m_pMenuEngyBuild ); m_pMenuEngyDestroy = ( CHudMenuEngyDestroy * )GET_HUDELEMENT( CHudMenuEngyDestroy ); Assert( m_pMenuEngyDestroy ); m_pMenuSpyDisguise = ( CHudMenuSpyDisguise * )GET_HUDELEMENT( CHudMenuSpyDisguise ); Assert( m_pMenuSpyDisguise ); m_pMenuWeaponSet = (CHudMenuWeaponSet *)GET_HUDELEMENT(CHudMenuWeaponSet); Assert(m_pMenuWeaponSet); m_pFreezePanel = ( CTFFreezePanel * )GET_HUDELEMENT( CTFFreezePanel ); Assert( m_pFreezePanel ); CreateInterfaceFn gameUIFactory = g_GameUI.GetFactory(); if ( gameUIFactory ) { m_pGameUI = (IGameUI *) gameUIFactory(GAMEUI_INTERFACE_VERSION, NULL ); if ( NULL != m_pGameUI ) { // insert stats summary panel as the loading background dialog CTFStatsSummaryPanel *pPanel = GStatsSummaryPanel(); pPanel->InvalidateLayout( false, true ); pPanel->SetVisible( false ); pPanel->MakePopup( false ); m_pGameUI->SetLoadingBackgroundDialog( pPanel->GetVPanel() ); } } #if defined( _X360 ) m_pScoreboard = (CTFClientScoreBoardDialog *)( gViewPortInterface->FindPanelByName( PANEL_SCOREBOARD ) ); Assert( m_pScoreboard ); #endif BaseClass::Init(); }
//----------------------------------------------------------------------------- // Purpose: Updates the stat summary panel w/current stats //----------------------------------------------------------------------------- void CTFStatPanel::UpdateStatSummaryPanel() { GStatsSummaryPanel()->SetStats( m_aClassStats ); }