From e6e7bf3559e537c217bb6ad09ae540c7a2d37793 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 23 May 2008 23:01:30 +0000 Subject: [FIX] Added an overworld property to moves git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@169 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/MoveUI.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pokemodr/MoveUI.cpp') 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(modified())->numTargets()); varTargetChoice->setCurrentIndex(static_cast(modified())->targetChoice()); varSpecial->setChecked(static_cast(modified())->special() ? Qt::Checked : Qt::Unchecked); + varOverworld->setChecked(static_cast(modified())->overworld() ? Qt::Checked : Qt::Unchecked); varDescription->setPlainText(static_cast(modified())->description()); } @@ -117,6 +118,11 @@ void MoveUI::on_varSpecial_toggled(const bool special) static_cast(modified())->setSpecial(special); } +void MoveUI::on_varOverworld_toggled(const bool overworld) +{ + static_cast(modified())->setOverworld(overworld); +} + void MoveUI::on_varDescription_textChanged() { QTextCursor cursor = varDescription->textCursor(); -- cgit