From 26ced0dd5806b68d47008a4dd44964717e19714c Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Wed, 14 Nov 2018 14:55:12 -0500 Subject: [PATCH] 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 --- src/serialization/sb2.js | 4 ++++ src/serialization/sb2_specmap.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/serialization/sb2.js b/src/serialization/sb2.js index b8fb46cc6..6c7d16d12 100644 --- a/src/serialization/sb2.js +++ b/src/serialization/sb2.js @@ -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; diff --git a/src/serialization/sb2_specmap.js b/src/serialization/sb2_specmap.js index de1420e7e..a78ee185a 100644 --- a/src/serialization/sb2_specmap.js +++ b/src/serialization/sb2_specmap.js @@ -518,7 +518,7 @@ const specMap = { argMap: [ { type: 'input', - inputOp: 'math_number', + inputOp: 'note', inputName: 'NOTE' }, {