Add slot number to position chooser as requested by dak180

master
Per Inge Mathisen 2011-01-18 22:42:29 +01:00
parent 34d8148e4a
commit 90f506feb5
1 changed files with 4 additions and 1 deletions

View File

@ -3708,11 +3708,14 @@ void displayPosition(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, PIELIGHT
{
const int x = xOffset + psWidget->x;
const int y = yOffset + psWidget->y;
const int i = psWidget->UserData;
char text[80];
drawBlueBox(x, y, psWidget->width, psWidget->height);
iV_SetFont(font_regular);
iV_SetTextColour(WZCOL_TEXT_BRIGHT);
iV_DrawText("Click here to select this slot", x + 10, y + 22);
ssprintf(text, "Click to take player slot %d", NetPlay.players[i].position);
iV_DrawText(text, x + 10, y + 22);
}
static void displayAi(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, PIELIGHT *pColours)