mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Hide pen blocks from palette on stage
This commit is contained in:
parent
5462fe9966
commit
62504cecb9
1 changed files with 17 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
||||||
const ArgumentType = require('../../extension-support/argument-type');
|
const ArgumentType = require('../../extension-support/argument-type');
|
||||||
const BlockType = require('../../extension-support/block-type');
|
const BlockType = require('../../extension-support/block-type');
|
||||||
|
const TargetType = require('../../extension-support/target-type');
|
||||||
const Cast = require('../../util/cast');
|
const Cast = require('../../util/cast');
|
||||||
const Clone = require('../../util/clone');
|
const Clone = require('../../util/clone');
|
||||||
const Color = require('../../util/color');
|
const Color = require('../../util/color');
|
||||||
|
@ -306,7 +307,8 @@ class Scratch3PenBlocks {
|
||||||
id: 'pen.stamp',
|
id: 'pen.stamp',
|
||||||
default: 'stamp',
|
default: 'stamp',
|
||||||
description: 'render current costume on the background'
|
description: 'render current costume on the background'
|
||||||
})
|
}),
|
||||||
|
filter: [TargetType.SPRITE]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
opcode: 'penDown',
|
opcode: 'penDown',
|
||||||
|
@ -315,7 +317,8 @@ class Scratch3PenBlocks {
|
||||||
id: 'pen.penDown',
|
id: 'pen.penDown',
|
||||||
default: 'pen down',
|
default: 'pen down',
|
||||||
description: 'start leaving a trail when the sprite moves'
|
description: 'start leaving a trail when the sprite moves'
|
||||||
})
|
}),
|
||||||
|
filter: [TargetType.SPRITE]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
opcode: 'penUp',
|
opcode: 'penUp',
|
||||||
|
@ -324,7 +327,8 @@ class Scratch3PenBlocks {
|
||||||
id: 'pen.penUp',
|
id: 'pen.penUp',
|
||||||
default: 'pen up',
|
default: 'pen up',
|
||||||
description: 'stop leaving a trail behind the sprite'
|
description: 'stop leaving a trail behind the sprite'
|
||||||
})
|
}),
|
||||||
|
filter: [TargetType.SPRITE]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
opcode: 'setPenColorToColor',
|
opcode: 'setPenColorToColor',
|
||||||
|
@ -338,7 +342,8 @@ class Scratch3PenBlocks {
|
||||||
COLOR: {
|
COLOR: {
|
||||||
type: ArgumentType.COLOR
|
type: ArgumentType.COLOR
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
filter: [TargetType.SPRITE]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
opcode: 'changePenColorParamBy',
|
opcode: 'changePenColorParamBy',
|
||||||
|
@ -358,7 +363,8 @@ class Scratch3PenBlocks {
|
||||||
type: ArgumentType.NUMBER,
|
type: ArgumentType.NUMBER,
|
||||||
defaultValue: 10
|
defaultValue: 10
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
filter: [TargetType.SPRITE]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
opcode: 'setPenColorParamTo',
|
opcode: 'setPenColorParamTo',
|
||||||
|
@ -378,7 +384,8 @@ class Scratch3PenBlocks {
|
||||||
type: ArgumentType.NUMBER,
|
type: ArgumentType.NUMBER,
|
||||||
defaultValue: 50
|
defaultValue: 50
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
filter: [TargetType.SPRITE]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
opcode: 'changePenSizeBy',
|
opcode: 'changePenSizeBy',
|
||||||
|
@ -393,7 +400,8 @@ class Scratch3PenBlocks {
|
||||||
type: ArgumentType.NUMBER,
|
type: ArgumentType.NUMBER,
|
||||||
defaultValue: 1
|
defaultValue: 1
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
filter: [TargetType.SPRITE]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
opcode: 'setPenSizeTo',
|
opcode: 'setPenSizeTo',
|
||||||
|
@ -408,7 +416,8 @@ class Scratch3PenBlocks {
|
||||||
type: ArgumentType.NUMBER,
|
type: ArgumentType.NUMBER,
|
||||||
defaultValue: 1
|
defaultValue: 1
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
filter: [TargetType.SPRITE]
|
||||||
},
|
},
|
||||||
/* Legacy blocks, should not be shown in flyout */
|
/* Legacy blocks, should not be shown in flyout */
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue