Re-order blocks

This commit is contained in:
Eric Rosenbaum 2019-02-20 10:59:07 -05:00
parent 7da54dd067
commit 9e650279a6

View file

@ -622,6 +622,22 @@ class Scratch3GdxForBlocks {
blockIconURI: blockIconURI, blockIconURI: blockIconURI,
showStatusButton: true, showStatusButton: true,
blocks: [ blocks: [
{
opcode: 'whenGesture',
text: formatMessage({
id: 'gdxfor.whenGesture',
default: 'when [GESTURE]',
description: 'when the sensor detects a gesture'
}),
blockType: BlockType.HAT,
arguments: {
GESTURE: {
type: ArgumentType.STRING,
menu: 'gestureOptions',
defaultValue: GestureValues.SHAKEN
}
}
},
{ {
opcode: 'whenForcePushedOrPulled', opcode: 'whenForcePushedOrPulled',
text: formatMessage({ text: formatMessage({
@ -665,18 +681,18 @@ class Scratch3GdxForBlocks {
} }
}, },
{ {
opcode: 'whenGesture', opcode: 'isTilted',
text: formatMessage({ text: formatMessage({
id: 'gdxfor.whenGesture', id: 'gdxfor.isTilted',
default: 'when [GESTURE]', default: 'tilted [TILT]?',
description: 'when the sensor detects a gesture' description: 'is the device tilted?'
}), }),
blockType: BlockType.HAT, blockType: BlockType.BOOLEAN,
arguments: { arguments: {
GESTURE: { TILT: {
type: ArgumentType.STRING, type: ArgumentType.STRING,
menu: 'gestureOptions', menu: 'tiltAnyOptions',
defaultValue: GestureValues.SHAKEN defaultValue: TiltAxisValues.ANY
} }
} }
}, },
@ -696,6 +712,7 @@ class Scratch3GdxForBlocks {
} }
} }
}, },
'---',
{ {
opcode: 'getSpinSpeed', opcode: 'getSpinSpeed',
text: formatMessage({ text: formatMessage({
@ -728,7 +745,6 @@ class Scratch3GdxForBlocks {
} }
} }
}, },
'---',
{ {
opcode: 'isFacing', opcode: 'isFacing',
text: formatMessage({ text: formatMessage({
@ -753,22 +769,6 @@ class Scratch3GdxForBlocks {
description: 'is the device in free fall?' description: 'is the device in free fall?'
}), }),
blockType: BlockType.BOOLEAN blockType: BlockType.BOOLEAN
},
{
opcode: 'isTilted',
text: formatMessage({
id: 'gdxfor.isTilted',
default: 'tilted [TILT]?',
description: 'is the device tilted?'
}),
blockType: BlockType.BOOLEAN,
arguments: {
TILT: {
type: ArgumentType.STRING,
menu: 'tiltAnyOptions',
defaultValue: TiltAxisValues.ANY
}
}
} }
], ],
menus: { menus: {