mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Reorder video motion blocks. Resolves GH-1073
This commit is contained in:
parent
c9f30ed6ef
commit
717ac46bbd
1 changed files with 13 additions and 13 deletions
|
@ -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]',
|
||||
|
|
Loading…
Reference in a new issue