From cfbcb8b623ba48aab3256ba88fec9e72a585ab05 Mon Sep 17 00:00:00 2001 From: BigBahss Date: Mon, 31 Aug 2020 10:19:58 -0400 Subject: [PATCH] Add 'Show Location Name' to newmappopup --- forms/newmappopup.ui | 60 ++++++++++++++++++++++++++++++------------ src/ui/newmappopup.cpp | 3 ++- 2 files changed, 45 insertions(+), 18 deletions(-) diff --git a/forms/newmappopup.ui b/forms/newmappopup.ui index fe5e93a8..da2e0134 100644 --- a/forms/newmappopup.ui +++ b/forms/newmappopup.ui @@ -87,14 +87,14 @@ - + Map Height - + <html><head/><body><p>Height (in blocks) of the new map.</p></body></html> @@ -104,14 +104,14 @@ - + Border Width - + <html><head/><body><p>Width (in blocks) of the new map's border.</p></body></html> @@ -121,14 +121,14 @@ - + Border Height - + <html><head/><body><p>Height (in blocks) of the new map's border.</p></body></html> @@ -138,14 +138,14 @@ - + Primary Tileset - + <html><head/><body><p>The primary tileset for the new map.</p></body></html> @@ -155,14 +155,14 @@ - + Secondary Tileset - + <html><head/><body><p>The secondary tileset for the new map.</p></body></html> @@ -172,14 +172,14 @@ - + Type - + <html><head/><body><p>The map type is a general attribute, which is used for many different things. For example. it determines whether biking or running is allowed.</p></body></html> @@ -189,14 +189,14 @@ - + Location - + <html><head/><body><p>The section of the region map which the map is grouped under. This also determines the name of the map that is displayed when the player enters it.</p></body></html> @@ -206,14 +206,14 @@ - + Can Fly To - + <html><head/><body><p>Whether to add a heal location to the new map.</p></body></html> @@ -223,6 +223,23 @@ + + + + Show Location Name + + + + + + + <html><head/><body><p>Whether or not to display the location name when the player enters the map.</p></body></html> + + + + + + @@ -232,6 +249,9 @@ + + <html><head/><body><p>Allows the player to use Running Shoes</p></body></html> + @@ -246,6 +266,9 @@ + + <html><head/><body><p>Allows the player to use a Bike</p></body></html> + @@ -254,12 +277,15 @@ - Allow Escape Rope + Allow Dig & Escape Rope + + <html><head/><body><p>Allows the player to use Dig or Escape Rope</p></body></html> + diff --git a/src/ui/newmappopup.cpp b/src/ui/newmappopup.cpp index 170e2ed6..697881a4 100644 --- a/src/ui/newmappopup.cpp +++ b/src/ui/newmappopup.cpp @@ -113,6 +113,7 @@ void NewMapPopup::setDefaultValues(int groupNum, QString mapSec) { ui->comboBox_NewMap_Type->addItems(*project->mapTypes); ui->comboBox_NewMap_Location->addItems(project->mapSectionValueToName.values()); if (!mapSec.isEmpty()) ui->comboBox_NewMap_Location->setCurrentText(mapSec); + ui->checkBox_NewMap_Show_Location->setChecked(true); ui->frame_NewMap_Options->setEnabled(true); @@ -195,7 +196,7 @@ void NewMapPopup::on_pushButton_NewMap_Accept_clicked() { newMap->song = this->project->defaultSong; newMap->requiresFlash = "0"; newMap->weather = this->project->weatherNames->value(0, "WEATHER_NONE"); - newMap->show_location = "1"; + newMap->show_location = this->ui->checkBox_NewMap_Show_Location->isChecked() ? "1" : "0"; newMap->battle_scene = this->project->mapBattleScenes->value(0, "MAP_BATTLE_SCENE_NORMAL"); if (this->existingLayout) {