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:
Eric Rosenbaum 2018-11-14 14:55:12 -05:00 committed by GitHub
parent 8aa88fa2a2
commit 26ced0dd58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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;

View file

@ -518,7 +518,7 @@ const specMap = {
argMap: [
{
type: 'input',
inputOp: 'math_number',
inputOp: 'note',
inputName: 'NOTE'
},
{