Remove duplicated melody block. Depends on additional toolbox parent parameter-setting behavior that is not yet implemented in pxt
This commit is contained in:
Родитель
11c8418570
Коммит
1fbf58bf76
|
@ -338,8 +338,9 @@ namespace music {
|
|||
*/
|
||||
//% weight=60 help=music/builtin-melody
|
||||
//% blockId=device_builtin_melody_playable block="melody $melody"
|
||||
//% toolboxParent=music_playable_play_default_bkg
|
||||
//% toolboxParent=music_playable_play
|
||||
//% toolboxParentArgument=toPlay
|
||||
//% toolboxParent.playbackMode.defl=music.PlaybackMode.InBackground
|
||||
//% duplicateShadowOnDrag
|
||||
//% group="Melody Advanced"
|
||||
export function builtInPlayableMelody(melody: Melodies): StringArrayPlayable {
|
||||
|
|
|
@ -79,6 +79,7 @@ namespace music {
|
|||
//% blockId="music_playable_play"
|
||||
//% block="play $toPlay $playbackMode"
|
||||
//% toPlay.shadow=music_string_playable
|
||||
//% playbackMode.defl=music.PlaybackMode.LoopingInBackground
|
||||
//% group="Melody"
|
||||
//% help="music/play"
|
||||
//% blockHidden
|
||||
|
@ -86,17 +87,6 @@ namespace music {
|
|||
toPlay._play(playbackMode);
|
||||
}
|
||||
|
||||
//% blockId="music_playable_play_default_bkg"
|
||||
//% block="play $toPlay $playbackMode"
|
||||
//% toPlay.shadow=music_string_playable
|
||||
//% playbackMode.defl=music.PlaybackMode.InBackground
|
||||
//% group="Melody"
|
||||
//% help="music/play"
|
||||
//% blockHidden
|
||||
export function _playDefaultBackground(toPlay: Playable, playbackMode: PlaybackMode) {
|
||||
return play(toPlay, playbackMode);
|
||||
}
|
||||
|
||||
//% blockId="music_string_playable"
|
||||
//% block="melody $melody at tempo $bpm|(bpm)"
|
||||
//% weight=85 blockGap=8
|
||||
|
|
Загрузка…
Ссылка в новой задаче