mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Use note picker in imported play note blocks (#1757)
* Use note picker in imported play note blocks * Set default for obscured note shadows to 60
This commit is contained in:
parent
8aa88fa2a2
commit
26ced0dd58
2 changed files with 5 additions and 1 deletions
|
@ -990,6 +990,10 @@ const parseBlock = function (sb2block, addBroadcastMsg, getVariableId, extension
|
||||||
} else if (fieldValue === 'Stage') {
|
} else if (fieldValue === 'Stage') {
|
||||||
fieldValue = '_stage_';
|
fieldValue = '_stage_';
|
||||||
}
|
}
|
||||||
|
} else if (expectedArg.inputOp === 'note') {
|
||||||
|
if (shadowObscured) {
|
||||||
|
fieldValue = 60;
|
||||||
|
}
|
||||||
} else if (expectedArg.inputOp === 'music.menu.DRUM') {
|
} else if (expectedArg.inputOp === 'music.menu.DRUM') {
|
||||||
if (shadowObscured) {
|
if (shadowObscured) {
|
||||||
fieldValue = 1;
|
fieldValue = 1;
|
||||||
|
|
|
@ -518,7 +518,7 @@ const specMap = {
|
||||||
argMap: [
|
argMap: [
|
||||||
{
|
{
|
||||||
type: 'input',
|
type: 'input',
|
||||||
inputOp: 'math_number',
|
inputOp: 'note',
|
||||||
inputName: 'NOTE'
|
inputName: 'NOTE'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue