diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui index 95c86f97..f5e0a0b8 100644 --- a/forms/mainwindow.ui +++ b/forms/mainwindow.ui @@ -233,23 +233,23 @@ - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + @@ -263,7 +263,7 @@ - 1 + 0 false @@ -362,8 +362,8 @@ 0 0 - 508 - 665 + 543 + 600 @@ -890,8 +890,8 @@ 0 0 - 442 - 77 + 443 + 74 @@ -1078,10 +1078,10 @@ - 0 + 8 0 - 425 - 419 + 431 + 341 @@ -1496,8 +1496,8 @@ 0 0 - 98 - 28 + 430 + 521 @@ -1541,8 +1541,8 @@ 0 0 - 98 - 28 + 430 + 521 @@ -1586,8 +1586,8 @@ 0 0 - 98 - 28 + 430 + 521 @@ -1631,8 +1631,8 @@ 0 0 - 98 - 28 + 430 + 521 @@ -1676,8 +1676,8 @@ 0 0 - 98 - 28 + 430 + 521 @@ -1727,8 +1727,8 @@ 0 0 - 98 - 28 + 430 + 521 @@ -2428,8 +2428,8 @@ 0 0 - 101 - 101 + 118 + 118 @@ -2690,7 +2690,7 @@ 0 0 1287 - 21 + 22 @@ -3040,7 +3040,6 @@ AdjustingStackedWidget QStackedWidget
adjustingstackedwidget.h
- 1 GraphicsView diff --git a/src/ui/tileseteditor.cpp b/src/ui/tileseteditor.cpp index 386f62fc..ae8f0fa8 100644 --- a/src/ui/tileseteditor.cpp +++ b/src/ui/tileseteditor.cpp @@ -56,9 +56,16 @@ void TilesetEditor::init(Project *project, QString primaryTilesetLabel, QString for (int num : project->metatileBehaviorMapInverse.keys()) { this->ui->comboBox_metatileBehaviors->addItem(project->metatileBehaviorMapInverse[num], num); } - this->ui->comboBox_layerType->addItem("Normal - Middle/Top", 0); - this->ui->comboBox_layerType->addItem("Covered - Bottom/Middle", 1); - this->ui->comboBox_layerType->addItem("Split - Bottom/Top", 2); + + if (!projectConfig.getTripleLayerMetatilesEnabled()) { + this->ui->comboBox_layerType->addItem("Normal - Middle/Top", 0); + this->ui->comboBox_layerType->addItem("Covered - Bottom/Middle", 1); + this->ui->comboBox_layerType->addItem("Split - Bottom/Top", 2); + } else { + this->ui->comboBox_layerType->setVisible(false); + this->ui->label_layerType->setVisible(false); + } + this->ui->spinBox_paletteSelector->setMinimum(0); this->ui->spinBox_paletteSelector->setMaximum(Project::getNumPalettesTotal() - 1); @@ -226,7 +233,9 @@ void TilesetEditor::onSelectedMetatileChanged(uint16_t metatileId) { this->ui->graphicsView_metatileLayers->setFixedSize(this->metatileLayersItem->pixmap().width() + 2, this->metatileLayersItem->pixmap().height() + 2); this->ui->comboBox_metatileBehaviors->setCurrentIndex(this->ui->comboBox_metatileBehaviors->findData(this->metatile->behavior)); this->ui->lineEdit_metatileLabel->setText(this->metatile->label); - this->ui->comboBox_layerType->setCurrentIndex(this->ui->comboBox_layerType->findData(this->metatile->layerType)); + if (!projectConfig.getTripleLayerMetatilesEnabled()) { + this->ui->comboBox_layerType->setCurrentIndex(this->ui->comboBox_layerType->findData(this->metatile->layerType)); + } if (projectConfig.getBaseGameVersion() == BaseGameVersion::pokefirered) { this->ui->comboBox_encounterType->setCurrentIndex(this->ui->comboBox_encounterType->findData(this->metatile->encounterType)); this->ui->comboBox_terrainType->setCurrentIndex(this->ui->comboBox_terrainType->findData(this->metatile->terrainType));