QTfrontend/ui/widget/mapContainer.cpp
changeset 10959 1225f42f61e2
parent 10521 844874dba527
child 11744 ac58a063d26a
equal deleted inserted replaced
10957:f3fcba306da9 10959:1225f42f61e2
   324                    getTemplateFilter(),
   324                    getTemplateFilter(),
   325                    get_mapgen(),
   325                    get_mapgen(),
   326                    getMazeSize(),
   326                    getMazeSize(),
   327                    getDrawnMapData(),
   327                    getDrawnMapData(),
   328                    m_script,
   328                    m_script,
       
   329                    m_scriptparam,
   329 		           m_mapFeatureSize
   330 		           m_mapFeatureSize
   330                   );
   331                   );
   331 
   332 
   332     setHHLimit(0);
   333     setHHLimit(0);
   333 
   334 
   429             || (m_mapInfo.type == MapModel::GeneratedMaze)
   430             || (m_mapInfo.type == MapModel::GeneratedMaze)
   430             || (m_mapInfo.type == MapModel::GeneratedPerlin))
   431             || (m_mapInfo.type == MapModel::GeneratedPerlin))
   431         updatePreview();
   432         updatePreview();
   432 }
   433 }
   433 
   434 
   434 void HWMapContainer::setScript(const QString & script)
   435 void HWMapContainer::setScript(const QString & script, const QString & scriptparam)
   435 {
   436 {
   436     m_script = script;
   437     m_script = script;
       
   438     m_scriptparam = scriptparam;
   437     if ((m_mapInfo.type == MapModel::GeneratedMap)
   439     if ((m_mapInfo.type == MapModel::GeneratedMap)
   438             || (m_mapInfo.type == MapModel::GeneratedMaze)
   440             || (m_mapInfo.type == MapModel::GeneratedMaze)
   439             || (m_mapInfo.type == MapModel::GeneratedPerlin)
   441             || (m_mapInfo.type == MapModel::GeneratedPerlin)
   440             || (m_mapInfo.type == MapModel::HandDrawnMap))
   442             || (m_mapInfo.type == MapModel::HandDrawnMap))
   441         updatePreview();
   443         updatePreview();