1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

resource and playername translation

This commit is contained in:
Laserlicht
2025-01-03 00:01:42 +01:00
parent 3e44dd6a88
commit 4aed816b05
7 changed files with 44 additions and 15 deletions

View File

@@ -29,7 +29,9 @@ PlayerParams::PlayerParams(MapController & ctrl, int playerId, QWidget *parent)
{
if(i == playerId || !controller.map()->players[i].canAnyonePlay())
{
ui->playerColorCombo->addItem(QString::fromStdString(GameConstants::PLAYER_COLOR_NAMES[i]), QVariant(i));
MetaString str;
str.appendName(PlayerColor(i));
ui->playerColorCombo->addItem(QString::fromStdString(str.toString()), QVariant(i));
if(i == playerId)
ui->playerColorCombo->setCurrentIndex(index);
++index;