From 2c0a3866e09140d8d5ff84178decddc22db15778 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 6 Oct 2008 00:50:02 +0000 Subject: [FIX] Added single player option to Sigmod [FIX] Doxygen generation cleaned up [FIX] Can no longer override variables in the Sigmod if not a single player game [FIX] When checking for modified move priority, blean up afterwards git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@271 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- sigmodr/SigmodUI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sigmodr/SigmodUI.cpp') diff --git a/sigmodr/SigmodUI.cpp b/sigmodr/SigmodUI.cpp index 31d37a13..4b3defca 100644 --- a/sigmodr/SigmodUI.cpp +++ b/sigmodr/SigmodUI.cpp @@ -67,7 +67,9 @@ void Sigmodr::SigmodUI::setGui() varTitle->setText(qobject_cast(modified())->title()); varVersion->setText(qobject_cast(modified())->version()); varDescription->setText(qobject_cast(modified())->description()); + varSinglePlayer->setChecked(qobject_cast(modified())->singlePlayer() ? Qt::Checked : Qt::Unchecked); varMap->setCurrentIndex(varMap->findData(qobject_cast(modified())->startMap())); + varMap->setEnabled(qobject_cast(modified())->singlePlayer()); m_lastMap = qobject_cast(modified())->startMap(); if (resetWarps) { @@ -86,6 +88,7 @@ void Sigmodr::SigmodUI::setGui() varWarp->blockSignals(blocked); } varWarp->setCurrentIndex(varWarp->findData(qobject_cast(modified())->startWarp())); + varWarp->setEnabled(qobject_cast(modified())->singlePlayer()); } void Sigmodr::SigmodUI::apply() @@ -123,6 +126,11 @@ void Sigmodr::SigmodUI::on_varDescription_textChanged(const QString& description varDescription->setCursorPosition(cursor); } +void Sigmodr::SigmodUI::on_varSinglePlayer_clicked(const bool singlePlayer) +{ + qobject_cast(modified())->setSinglePlayer(singlePlayer); +} + void Sigmodr::SigmodUI::on_varMap_activated(const int map) { qobject_cast(modified())->setStartMap(varMap->itemData(map).toInt()); -- cgit