diff -r 31afb7cdff69 -r 43c6b9cfb569 QTfrontend/ui/widget/gamecfgwidget.cpp --- a/QTfrontend/ui/widget/gamecfgwidget.cpp Sun Nov 09 15:52:09 2014 -0500 +++ b/QTfrontend/ui/widget/gamecfgwidget.cpp Sun Nov 09 16:38:26 2014 -0500 @@ -163,6 +163,7 @@ connect(pMapContainer, SIGNAL(mapChanged(const QString &)), this, SLOT(mapChanged(const QString &))); connect(pMapContainer, SIGNAL(mapgenChanged(MapGenerator)), this, SLOT(mapgenChanged(MapGenerator))); connect(pMapContainer, SIGNAL(mazeSizeChanged(int)), this, SLOT(maze_sizeChanged(int))); + connect(pMapContainer, SIGNAL(mapFeatureSizeChanged(int)), this, SLOT(slMapFeatureSizeChanged(int))); connect(pMapContainer, SIGNAL(themeChanged(const QString &)), this, SLOT(themeChanged(const QString &))); connect(pMapContainer, SIGNAL(newTemplateFilter(int)), this, SLOT(templateFilterChanged(int))); connect(pMapContainer, SIGNAL(drawMapRequested()), this, SIGNAL(goToDrawMap())); @@ -403,6 +404,7 @@ mapgenChanged(pMapContainer->get_mapgen()); maze_sizeChanged(pMapContainer->getMazeSize()); + slMapFeatureSizeChanged(pMapContainer->getFeatureSize()); if(pMapContainer->get_mapgen() == 2) onDrawnMapChanged(pMapContainer->getDrawnMapData()); @@ -443,6 +445,11 @@ pMapContainer->setMapgen((MapGenerator)value.toUInt()); return; } + if (param == "FEATURE_SIZE") + { + pMapContainer->setFeatureSize(value.toUInt()); + return; + } if (param == "MAZE_SIZE") { pMapContainer->setMazeSize(value.toUInt()); @@ -481,7 +488,8 @@ (MapGenerator)slValue[1].toUInt(), slValue[2].toUInt(), seed, - slValue[4].toUInt() + slValue[4].toUInt(), + slValue[5].toUInt() ); return; } @@ -672,6 +680,11 @@ emit paramChanged("MAZE_SIZE", QStringList(QString::number(s))); } +void GameCFGWidget::slMapFeatureSizeChanged(int s) +{ + emit paramChanged("FEATURE_SIZE", QStringList(QString::number(s))); +} + void GameCFGWidget::resendSchemeData() { schemeChanged(GameSchemes->currentIndex());