2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 03:07:41 +00:00

Initial Options tab, CVar dialog

This commit is contained in:
2020-04-15 02:13:11 -04:00
parent 4c178bee84
commit 3487423d78
12 changed files with 742 additions and 192 deletions

View File

@@ -299,6 +299,7 @@ void MainWindow::disableOperations() {
m_ui->pathEdit->setEnabled(false);
m_ui->browseBtn->setEnabled(false);
m_ui->downloadButton->setEnabled(false);
m_ui->warpBtn->setEnabled(false);
}
void MainWindow::enableOperations() {
@@ -306,6 +307,12 @@ void MainWindow::enableOperations() {
m_ui->pathEdit->setEnabled(true);
m_ui->browseBtn->setEnabled(true);
if (hecl::com_enableCheats->toBoolean()) {
m_ui->warpBtn->show();
} else {
m_ui->warpBtn->hide();
}
if (m_path.isEmpty())
return;
@@ -321,8 +328,12 @@ void MainWindow::enableOperations() {
m_ui->extractBtn->setEnabled(true);
if (QFile::exists(m_path + QStringLiteral("/MP1/URDE/texture_cache.yaml"))) {
m_ui->packageBtn->setEnabled(true);
if (isPackageComplete())
if (isPackageComplete()) {
m_ui->launchBtn->setEnabled(true);
if (hecl::com_enableCheats->toBoolean()) {
m_ui->warpBtn->setEnabled(true);
}
}
}
if (!m_ui->sysReqTable->isBlenderVersionOk()) {