DIRECTOR: Implement kTransCenterOutSquare

This commit is contained in:
Eugene Sandulenko 2020-03-29 22:03:08 +02:00
parent e01fe2a2c4
commit 5f8d882172

View File

@ -187,6 +187,15 @@ void Frame::playTransition(Score *score) {
rfrom = rto;
break;
case kTransCenterOutSquare: // 9
t.ypos += t.yStepSize;
rto.setHeight(t.ypos * 2);
t.xpos += t.xStepSize;
rto.setWidth(t.xpos * 2);
rto.moveTo(clipRect.width() / 2 - t.xpos, clipRect.height() / 2 - t.ypos);
rfrom = rto;
break;
case kTransCoverDown: // 29
rto.setHeight(clipRect.height());
rto.moveTo(0, -clipRect.height() + t.yStepSize * i);