Exemple #1
0
void CScreenFailure::OnFocus(LTBOOL bFocus)
{

	if (bFocus)
	{
		g_fDuration = 0.0f;
		if (m_pString)
		{
			CUIFormattedPolyString *pStr = m_pString->GetString();
			if (pStr)
				pStr->SetText(LoadTempString(g_pInterfaceMgr->GetFailStringID()));
		}
	}
	else
	{
		if (m_pString)
		{
			CUIFormattedPolyString *pStr = m_pString->GetString();
			if (pStr)
				pStr->SetText("");
		}
	}
	CBaseScreen::OnFocus(bFocus);
}
Exemple #2
0
void CHUDRadar::UpdatePlayerName( uint32 nId, const char*pName, uint8 nTeamID )
{
	RadarPlayerList::iterator iter = m_Players.begin();
	while (iter != m_Players.end() &&  (*iter)->nID != nId )
	{
		iter++;
	}

	if (iter != m_Players.end())
	{
		CUIFormattedPolyString* pStr = (*iter)->pName;
		pStr->SetText(pName);


	}
	UpdateNamePositions();
}