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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user