//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======= // // Purpose: // //============================================================================= #include "cbase.h" #include "intromenu.h" #include #include #include #include #include #include #include #include #include #include "spectatorgui.h" #include "gamerules.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" using namespace vgui; //----------------------------------------------------------------------------- // Purpose: Constructor //----------------------------------------------------------------------------- CIntroMenu::CIntroMenu( IViewPort *pViewPort ) : BaseClass( NULL, PANEL_INTRO ) { // initialize dialog m_pViewPort = pViewPort; m_pTitleLabel = NULL; // load the new scheme early!! SetScheme( "ClientScheme" ); SetMoveable( false ); SetSizeable( false ); SetProportional( true ); // hide the system buttons SetTitleBarVisible( false ); Reset(); } //----------------------------------------------------------------------------- // Purpose: Destructor //----------------------------------------------------------------------------- CIntroMenu::~CIntroMenu() { } //----------------------------------------------------------------------------- // Purpose: Sets the color of the top and bottom bars //----------------------------------------------------------------------------- void CIntroMenu::ApplySchemeSettings( IScheme *pScheme ) { BaseClass::ApplySchemeSettings( pScheme ); LoadControlSettings("Resource/UI/IntroMenu.res"); m_pTitleLabel = dynamic_cast