mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -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') {
|
||||
fieldValue = '_stage_';
|
||||
}
|
||||
} else if (expectedArg.inputOp === 'note') {
|
||||
if (shadowObscured) {
|
||||
fieldValue = 60;
|
||||
}
|
||||
} else if (expectedArg.inputOp === 'music.menu.DRUM') {
|
||||
if (shadowObscured) {
|
||||
fieldValue = 1;
|
||||
|
|
|
@ -518,7 +518,7 @@ const specMap = {
|
|||
argMap: [
|
||||
{
|
||||
type: 'input',
|
||||
inputOp: 'math_number',
|
||||
inputOp: 'note',
|
||||
inputName: 'NOTE'
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue