From a7f5f0a173aba2819a950aa7d9d06047f7e6d707 Mon Sep 17 00:00:00 2001 From: CalciteM Team Date: Sat, 29 Jun 2019 10:24:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=91=86=E6=A3=8B=E9=98=B6=E6=AE=B5=E5=9C=A8?= =?UTF-8?q?=E5=8F=89=E4=B8=8B=E9=9D=A2=E6=98=BE=E7=A4=BA=E8=A2=AB=E5=90=83?= =?UTF-8?q?=E7=9A=84=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NineChess/src/config.h | Bin 808 -> 930 bytes NineChess/src/gamecontroller.cpp | 18 ++++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/NineChess/src/config.h b/NineChess/src/config.h index 01a9881282c826f5b4a88e4d70bdebdb1408335d..5f2ea1ad2c72472665cd55ff49c3715b6abdce47 100644 GIT binary patch delta 84 zcmZ3%wupVhE+&~2w~W)%%(AzJYXqP4;y|u{wmgtR*^N@;pXe^pos() != pos) { - QPropertyAnimation *animation = new QPropertyAnimation(piece, "pos"); - animation->setDuration(durationTime); - animation->setStartValue(piece->pos()); - animation->setEndValue(pos); - animation->setEasingCurve(QEasingCurve::InOutQuad); - animationGroup->addAnimation(animation); +#ifdef GAME_PLACING_SHOW_CAPTURED_PIECES + if (chess.getStage() == NineChess::GAME_MOVING) { +#endif + QPropertyAnimation *animation = new QPropertyAnimation(piece, "pos"); + animation->setDuration(durationTime); + animation->setStartValue(piece->pos()); + animation->setEndValue(pos); + animation->setEasingCurve(QEasingCurve::InOutQuad); + animationGroup->addAnimation(animation); +#ifdef GAME_PLACING_SHOW_CAPTURED_PIECES + } +#endif } }