Update block gaps to account for extra space taken by event blocks (#1304)

This commit is contained in:
Sam El-Husseini
2018-09-26 16:27:32 -07:00
committed by GitHub
parent d8d3d70511
commit 9cd0d62baa
6 changed files with 25 additions and 25 deletions

View File

@ -300,7 +300,7 @@ namespace music {
* Registers code to run on various melody events
*/
//% blockId=melody_on_event block="music on %value"
//% help=music/on-event weight=59
//% help=music/on-event weight=59 blockGap=32
export function onEvent(value: MusicEvent, handler: () => void) {
control.onEvent(MICROBIT_MELODY_ID, value, handler);
}
@ -311,7 +311,7 @@ namespace music {
* @param melodyArray the melody array to play
* @param options melody options, once / forever, in the foreground / background
*/
//% help=music/begin-melody weight=60 blockGap=8
//% help=music/begin-melody weight=60 blockGap=16
//% blockId=device_start_melody block="start melody %melody=device_builtin_melody| repeating %options"
//% parts="headphone"
export function beginMelody(melodyArray: string[], options: MelodyOptions = 1) {