summaryrefslogtreecommitdiffstats
path: root/sigmodr/SigmodUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-10-06 00:50:02 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-10-06 00:50:02 +0000
commit2c0a3866e09140d8d5ff84178decddc22db15778 (patch)
tree8d780290c2b1738cb17cec832dd866b068b9a31f /sigmodr/SigmodUI.cpp
parent61276d172306a14c110a7c3631b484ccf93f9ffa (diff)
downloadsigen-2c0a3866e09140d8d5ff84178decddc22db15778.tar.gz
sigen-2c0a3866e09140d8d5ff84178decddc22db15778.tar.xz
sigen-2c0a3866e09140d8d5ff84178decddc22db15778.zip
[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
Diffstat (limited to 'sigmodr/SigmodUI.cpp')
-rw-r--r--sigmodr/SigmodUI.cpp8
1 files changed, 8 insertions, 0 deletions
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<Sigmod::Sigmod*>(modified())->title());
varVersion->setText(qobject_cast<Sigmod::Sigmod*>(modified())->version());
varDescription->setText(qobject_cast<Sigmod::Sigmod*>(modified())->description());
+ varSinglePlayer->setChecked(qobject_cast<Sigmod::Sigmod*>(modified())->singlePlayer() ? Qt::Checked : Qt::Unchecked);
varMap->setCurrentIndex(varMap->findData(qobject_cast<Sigmod::Sigmod*>(modified())->startMap()));
+ varMap->setEnabled(qobject_cast<Sigmod::Sigmod*>(modified())->singlePlayer());
m_lastMap = qobject_cast<Sigmod::Sigmod*>(modified())->startMap();
if (resetWarps)
{
@@ -86,6 +88,7 @@ void Sigmodr::SigmodUI::setGui()
varWarp->blockSignals(blocked);
}
varWarp->setCurrentIndex(varWarp->findData(qobject_cast<Sigmod::Sigmod*>(modified())->startWarp()));
+ varWarp->setEnabled(qobject_cast<Sigmod::Sigmod*>(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<Sigmod::Sigmod*>(modified())->setSinglePlayer(singlePlayer);
+}
+
void Sigmodr::SigmodUI::on_varMap_activated(const int map)
{
qobject_cast<Sigmod::Sigmod*>(modified())->setStartMap(varMap->itemData(map).toInt());