From 717ac46bbd5c3aaa2c0b12793f13c71357486597 Mon Sep 17 00:00:00 2001 From: Andrew Sliwinski Date: Mon, 23 Apr 2018 12:57:14 -0400 Subject: [PATCH] Reorder video motion blocks. Resolves GH-1073 --- .../scratch3_video_sensing/index.js | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/extensions/scratch3_video_sensing/index.js b/src/extensions/scratch3_video_sensing/index.js index 85767f3ee..47cad45cd 100644 --- a/src/extensions/scratch3_video_sensing/index.js +++ b/src/extensions/scratch3_video_sensing/index.js @@ -340,6 +340,19 @@ class Scratch3VideoSensingBlocks { id: 'videoSensing', name: 'Video Motion', blocks: [ + { + // @todo this hat needs to be set itself to restart existing + // threads like Scratch 2's behaviour. + opcode: 'whenMotionGreaterThan', + text: 'when video motion > [REFERENCE]', + blockType: BlockType.HAT, + arguments: { + REFERENCE: { + type: ArgumentType.NUMBER, + defaultValue: 10 + } + } + }, { opcode: 'videoOn', blockType: BlockType.REPORTER, @@ -357,19 +370,6 @@ class Scratch3VideoSensingBlocks { } } }, - { - // @todo this hat needs to be set itself to restart existing - // threads like Scratch 2's behaviour. - opcode: 'whenMotionGreaterThan', - text: 'when video motion > [REFERENCE]', - blockType: BlockType.HAT, - arguments: { - REFERENCE: { - type: ArgumentType.NUMBER, - defaultValue: 10 - } - } - }, { opcode: 'videoToggle', text: 'turn video [VIDEO_STATE]',