kopia lustrzana https://github.com/backface/turtlestitch
migrate experimental “jukebox” reporters to the new “my sounds” reporter
rodzic
6e74982fb3
commit
0b594e59ab
|
@ -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:
|
||||
|
|
33
objects.js
33
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'));
|
||||
|
|
Ładowanie…
Reference in New Issue