diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-23 23:01:30 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-23 23:01:30 +0000 |
| commit | e6e7bf3559e537c217bb6ad09ae540c7a2d37793 (patch) | |
| tree | cc73ed31c867dbe9a61d365d73641c040a4f917e /pokemodr/MoveUI.cpp | |
| parent | 0fe749eb04515ff7ee28cdc5d14c7be6f6fdeca4 (diff) | |
[FIX] Added an overworld property to moves
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@169 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/MoveUI.cpp')
| -rw-r--r-- | pokemodr/MoveUI.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pokemodr/MoveUI.cpp b/pokemodr/MoveUI.cpp index f531c46b..effe2770 100644 --- a/pokemodr/MoveUI.cpp +++ b/pokemodr/MoveUI.cpp @@ -61,6 +61,7 @@ void MoveUI::setGui() varNumTargets->setValue(static_cast<Move*>(modified())->numTargets()); varTargetChoice->setCurrentIndex(static_cast<Move*>(modified())->targetChoice()); varSpecial->setChecked(static_cast<Move*>(modified())->special() ? Qt::Checked : Qt::Unchecked); + varOverworld->setChecked(static_cast<Move*>(modified())->overworld() ? Qt::Checked : Qt::Unchecked); varDescription->setPlainText(static_cast<Move*>(modified())->description()); } @@ -117,6 +118,11 @@ void MoveUI::on_varSpecial_toggled(const bool special) static_cast<Move*>(modified())->setSpecial(special); } +void MoveUI::on_varOverworld_toggled(const bool overworld) +{ + static_cast<Move*>(modified())->setOverworld(overworld); +} + void MoveUI::on_varDescription_textChanged() { QTextCursor cursor = varDescription->textCursor(); |
