1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-18 03:21:27 +02:00
This commit is contained in:
Laserlicht 2024-06-29 14:14:21 +02:00
parent 018127b236
commit caaec71b9f

View File

@ -65,10 +65,10 @@ void GeneralSettings::update()
{
controller->map()->name = MetaString::createFromTextID(mapRegisterLocalizedString("map", *controller->map(), TextIdentifier("header", "name"), ui->mapNameEdit->text().toStdString()));
controller->map()->description = MetaString::createFromTextID(mapRegisterLocalizedString("map", *controller->map(), TextIdentifier("header", "description"), ui->mapDescriptionEdit->toPlainText().toStdString()));
controller->map()->author = MetaString::createFromRawString(ui->authorEdit->toPlainText().toStdString());
controller->map()->authorContact = MetaString::createFromRawString(ui->authorContactEdit->toPlainText().toStdString());
controller->map()->author = MetaString::createFromRawString(ui->authorEdit->text().toStdString());
controller->map()->authorContact = MetaString::createFromRawString(ui->authorContactEdit->text().toStdString());
controller->map()->creationDateTime = ui->mapCreationDateTimeEdit->dateTime().toTime_t();
controller->map()->mapVersion = MetaString::createFromRawString(ui->mapVersionEdit->toPlainText().toStdString());
controller->map()->mapVersion = MetaString::createFromRawString(ui->mapVersionEdit->text().toStdString());
if(ui->heroLevelLimitCheck->isChecked())
controller->map()->levelLimit = ui->heroLevelLimit->value();
else