diff --git a/forms/newmappopup.ui b/forms/newmappopup.ui index 213b7ceb..32369f57 100644 --- a/forms/newmappopup.ui +++ b/forms/newmappopup.ui @@ -210,13 +210,30 @@ + + + Song + + + + + + + <html><head/><body><p>The default background music for this map.</p></body></html> + + + true + + + + Can Fly To - + <html><head/><body><p>Whether to add a heal location to the new map.</p></body></html> @@ -226,14 +243,14 @@ - + Show Location Name - + <html><head/><body><p>Whether or not to display the location name when the player enters the map.</p></body></html> @@ -243,14 +260,14 @@ - + Allow Running - + <html><head/><body><p>Allows the player to use Running Shoes</p></body></html> @@ -260,14 +277,14 @@ - + Allow Biking - + <html><head/><body><p>Allows the player to use a Bike</p></body></html> @@ -277,14 +294,14 @@ - + Allow Dig & Escape Rope - + <html><head/><body><p>Allows the player to use Dig or Escape Rope</p></body></html> @@ -294,14 +311,14 @@ - + Floor Number - + <html><head/><body><p>Floor number to be used for maps with elevators.</p></body></html> diff --git a/src/ui/newmappopup.cpp b/src/ui/newmappopup.cpp index d38a3ff2..988d6129 100644 --- a/src/ui/newmappopup.cpp +++ b/src/ui/newmappopup.cpp @@ -109,6 +109,8 @@ void NewMapPopup::setDefaultValues(int groupNum, QString mapSec) { ui->comboBox_NewMap_Group->addItems(project->groupNames); ui->comboBox_NewMap_Group->setCurrentText(project->groupNames.at(groupNum)); + ui->comboBox_Song->addItems(project->getSongNames()); + if (existingLayout) { ui->spinBox_NewMap_Width->setValue(project->mapLayouts.value(layoutId)->width.toInt(nullptr, 0)); ui->spinBox_NewMap_Height->setValue(project->mapLayouts.value(layoutId)->height.toInt(nullptr, 0)); @@ -212,7 +214,7 @@ void NewMapPopup::on_pushButton_NewMap_Accept_clicked() { newMap->name = newMapName; newMap->type = this->ui->comboBox_NewMap_Type->currentText(); newMap->location = this->ui->comboBox_NewMap_Location->currentText(); - newMap->song = this->project->defaultSong; + newMap->song = this->ui->comboBox_Song->currentText(); newMap->requiresFlash = "0"; newMap->weather = this->project->weatherNames.value(0, "WEATHER_NONE"); newMap->show_location = this->ui->checkBox_NewMap_Show_Location->isChecked() ? "1" : "0";