mp/src/game/client/sdk/vgui/sdk_spectatorgui.cpp
void CSDKSpectatorGUI::StoreWidths( void )
{
	if ( !ControlsPresent() )
		return;

	if ( !m_modifiedWidths )
	{
		m_scoreWidth = m_pBlueScore->GetWide();
		int terScoreWidth = m_pRedScore->GetWide();

		m_extraInfoWidth = m_pExtraInfo->GetWide();

		if ( m_scoreWidth != terScoreWidth )
		{
			m_pRedScore = NULL; // We're working with a modified res file.  Don't muck things up playing with positioning.
		}
	}
}
//-----------------------------------------------------------------------------
// Purpose: Save off widths for sizing calculations
//-----------------------------------------------------------------------------
Save off widths for sizing calculations
Save off widths for sizing calculations
void CSDKSpectatorGUI::StoreWidths( void )
{
	if ( !ControlsPresent() )
		return;
	if ( !m_modifiedWidths )
	{
		m_scoreWidth = m_pBlueScore->GetWide();
		int terScoreWidth = m_pRedScore->GetWide();
		m_extraInfoWidth = m_pExtraInfo->GetWide();
		if ( m_scoreWidth != terScoreWidth )
		{
			m_pRedScore = NULL; 
		}
	}
}
void CSDKSpectatorGUI :: StoreWidths ( void ) { if ( ! ControlsPresent ( ) ) return ; if ( ! m_modifiedWidths ) { m_scoreWidth = m_pBlueScore -> GetWide ( ) ; int terScoreWidth = m_pRedScore -> GetWide ( ) ; m_extraInfoWidth = m_pExtraInfo -> GetWide ( ) ; if ( m_scoreWidth != terScoreWidth ) { m_pRedScore = NULL ; } } }
Purpose: Save off widths for sizing calculations
Purpose : Save off widths for sizing calculations
// We're working with a modified res file.  Don't muck things up playing with positioning.