Remove checkbox for enabling triple metatile layers.

This commit is contained in:
ultima-soul 2020-06-25 16:48:49 -07:00 committed by huderlem
parent debb1c66ac
commit 8ceb783056
3 changed files with 1 additions and 21 deletions

View file

@ -263,7 +263,7 @@
</sizepolicy>
</property>
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<property name="movable" stdset="0">
<bool>false</bool>
@ -2755,7 +2755,6 @@
<addaction name="actionUse_Encounter_Json"/>
<addaction name="actionMonitor_Project_Files"/>
<addaction name="actionUse_Poryscript"/>
<addaction name="actionUse_Triple_Layer_Metatiles"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
@ -3029,14 +3028,6 @@
<string>Export Map Stitch Image...</string>
</property>
</action>
<action name="actionUse_Triple_Layer_Metatiles">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Use Triple Layer Metatiles</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>

View file

@ -148,7 +148,6 @@ private slots:
void on_actionUse_Encounter_Json_triggered(bool checked);
void on_actionMonitor_Project_Files_triggered(bool checked);
void on_actionUse_Poryscript_triggered(bool checked);
void on_actionUse_Triple_Layer_Metatiles_triggered(bool checked);
void on_mainTabBar_tabBarClicked(int index);

View file

@ -165,7 +165,6 @@ void MainWindow::setProjectSpecificUIVisibility()
{
ui->actionUse_Encounter_Json->setChecked(projectConfig.getEncounterJsonActive());
ui->actionUse_Poryscript->setChecked(projectConfig.getUsePoryScript());
ui->actionUse_Triple_Layer_Metatiles->setChecked(projectConfig.getTripleLayerMetatilesEnabled());
ui->mainTabBar->setTabEnabled(4, projectConfig.getEncounterJsonActive());
@ -1329,15 +1328,6 @@ void MainWindow::on_actionUse_Poryscript_triggered(bool checked)
projectConfig.setUsePoryScript(checked);
}
void MainWindow::on_actionUse_Triple_Layer_Metatiles_triggered(bool checked)
{
QMessageBox warning(this);
warning.setText("You must reload the project for this setting to take effect.");
warning.setIcon(QMessageBox::Information);
warning.exec();
projectConfig.setTripleLayerMetatilesEnabled(checked);
}
void MainWindow::on_actionPencil_triggered()
{
on_toolButton_Paint_clicked();