migrate experimental “jukebox” reporters to the new “my sounds” reporter

upd4.1
Jens Mönig 2017-06-30 09:45:59 +02:00
rodzic 6e74982fb3
commit 0b594e59ab
2 zmienionych plików z 6 dodań i 28 usunięć

Wyświetl plik

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

Wyświetl plik

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