Exemplo n.º 1
0
void CVoiceManager::DrawVoiceStats( void )
{
	const float scale = 0.8f;

	int lineHeight = RE_Font_HeightPixels( 1, scale );

	// Draw the list of other players, color coded
	int yPos = 0;
	for( int i = 0; i < MAX_ONLINE_PLAYERS; ++i )
	{
		if( !xbOnlineInfo.xbPlayerList[i].isActive )
			continue;

		bool bTarget = false;
		for( int j = 0; j < numVoiceTargets; ++j )
			if( voiceTargets[j].index == i )
			{
				bTarget = true;
				break;
			}

		RE_Font_DrawString( 320, 100 + (yPos * lineHeight), xbOnlineInfo.xbPlayerList[i].name,
							bTarget ? colorGreen : colorWhite, 1, -1, scale );
		yPos++;
	}
}
Exemplo n.º 2
0
int TRM_Font_HeightPixels( const int iFontIndex, const float scale  ) {
	return RE_Font_HeightPixels(iFontIndex, scale);
}