equal
deleted
inserted
replaced
457 return; |
457 return; |
458 } |
458 } |
459 if (param == "SCRIPT") |
459 if (param == "SCRIPT") |
460 { |
460 { |
461 Scripts->setCurrentIndex(Scripts->findText(value)); |
461 Scripts->setCurrentIndex(Scripts->findText(value)); |
462 pMapContainer->setScript(Scripts->itemData(Scripts->currentIndex(), GameStyleModel::ScriptRole).toString().toUtf8()); |
462 pMapContainer->setScript(Scripts->itemData(Scripts->currentIndex(), GameStyleModel::ScriptRole).toString().toUtf8(), schemeData(43).toString()); |
463 return; |
463 return; |
464 } |
464 } |
465 if (param == "DRAWNMAP") |
465 if (param == "DRAWNMAP") |
466 { |
466 { |
467 pMapContainer->setDrawnMapData(qUncompress(QByteArray::fromBase64(slValue[0].toLatin1()))); |
467 pMapContainer->setDrawnMapData(qUncompress(QByteArray::fromBase64(slValue[0].toLatin1()))); |
659 WeaponsName->setEnabled(true); |
659 WeaponsName->setEnabled(true); |
660 bindEntries->setEnabled(true); |
660 bindEntries->setEnabled(true); |
661 } |
661 } |
662 if (!index) |
662 if (!index) |
663 { |
663 { |
664 pMapContainer->setScript(QString("")); |
664 pMapContainer->setScript(QString(""), QString("")); |
665 } |
665 } |
666 else |
666 else |
667 { |
667 { |
668 pMapContainer->setScript(name); |
668 pMapContainer->setScript(Scripts->itemData(index, GameStyleModel::ScriptRole).toString().toUtf8(), schemeData(43).toString()); |
669 pMapContainer->setScript(Scripts->itemData(index, GameStyleModel::ScriptRole).toString().toUtf8()); |
|
670 } |
669 } |
671 emit paramChanged("SCRIPT", QStringList(name)); |
670 emit paramChanged("SCRIPT", QStringList(name)); |
672 } |
671 } |
673 |
672 |
674 void GameCFGWidget::mapgenChanged(MapGenerator m) |
673 void GameCFGWidget::mapgenChanged(MapGenerator m) |