mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-25 17:09:50 -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',
|
id: 'videoSensing',
|
||||||
name: 'Video Motion',
|
name: 'Video Motion',
|
||||||
blocks: [
|
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',
|
opcode: 'videoOn',
|
||||||
blockType: BlockType.REPORTER,
|
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',
|
opcode: 'videoToggle',
|
||||||
text: 'turn video [VIDEO_STATE]',
|
text: 'turn video [VIDEO_STATE]',
|
||||||
|
|
Loading…
Reference in a new issue