diff --git a/history.txt b/history.txt index 6fbcb69d..56255770 100755 --- a/history.txt +++ b/history.txt @@ -3490,6 +3490,7 @@ Fixes: 170630 ------ * Objects: reflect attribute inheritance status by ghosting / un-ghosting stage monitors +* Objects: migrate experimental “jukebox” reporters to the new “my sounds” reporter Features: diff --git a/objects.js b/objects.js index c29bad6d..4748c9e7 100644 --- a/objects.js +++ b/objects.js @@ -1227,6 +1227,7 @@ SpriteMorph.prototype.initBlocks = function () { SpriteMorph.prototype.initBlocks(); SpriteMorph.prototype.initBlockMigrations = function () { + // change blocks in existing projects to their updated version SpriteMorph.prototype.blockMigrations = { doStopAll: { selector: 'doStopThis', @@ -1256,6 +1257,10 @@ SpriteMorph.prototype.initBlockMigrations = function () { selector: 'reportGet', inputs: [['costumes']] }, + reportSounds: { + selector: 'reportGet', + inputs: [['sounds']] + }, doMapStringCode: { selector: 'doMapValueCode', inputs: [['String'], '<#1>'], @@ -1876,20 +1881,6 @@ SpriteMorph.prototype.blockTemplates = function (category) { blocks.push(watcherToggle('getTempo')); blocks.push(block('getTempo')); - // for debugging: /////////////// - - if (this.world().isDevMode) { - blocks.push('-'); - txt = new TextMorph(localize( - 'development mode \ndebugging primitives:' - )); - txt.fontSize = 9; - txt.setColor(this.paletteTextColor); - blocks.push(txt); - blocks.push('-'); - blocks.push(block('reportSounds')); - } - } else if (cat === 'pen') { blocks.push(block('clear')); @@ -6680,20 +6671,6 @@ StageMorph.prototype.blockTemplates = function (category) { blocks.push(watcherToggle('getTempo')); blocks.push(block('getTempo')); - // for debugging: /////////////// - - if (this.world().isDevMode) { - blocks.push('-'); - txt = new TextMorph(localize( - 'development mode \ndebugging primitives:' - )); - txt.fontSize = 9; - txt.setColor(this.paletteTextColor); - blocks.push(txt); - blocks.push('-'); - blocks.push(block('reportSounds')); - } - } else if (cat === 'pen') { blocks.push(block('clear'));