Reorder video motion blocks. Resolves GH-1073

This commit is contained in:
Andrew Sliwinski 2018-04-23 12:57:14 -04:00
parent c9f30ed6ef
commit 717ac46bbd

View file

@ -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]',