Example #1
0
void CBitmapUi::SetScreenState( const EScreenState state )
{
	if ( gEnv->IsEditor() )
	{
		return;
	}

	m_currentScreenState = state;

	// TODO: Fix console drawing during CSystem::UpdateLoadingScreen to properly remove one of
	// the issues that can cause flickering during level load and when the console is visible.
	if ( state == eSS_LoadingScreen )
	{
		IConsole* pConsole = gEnv->pConsole;
		if ( pConsole != NULL )
		{
			pConsole->ShowConsole( false );
		}
	}	
}