Example #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++;
	}
}
Example #2
0
void TRM_Font_DrawString( int ox, int oy, const char *text, const float *rgba, const int setIndex, int iCharLimit, const float scale  ) {
	RE_Font_DrawString(ox, oy, text, rgba, setIndex, iCharLimit, scale);
}