kopia lustrzana https://github.com/backface/turtlestitch
Final commit:
-Removed an accidental change -Removed commented log statementpull/3/merge
rodzic
04bb141462
commit
f6afb9d08d
|
@ -3716,6 +3716,7 @@ SpriteMorph.prototype.doScreenshot = function(data) {
|
||||||
var costume = new Costume(canvas, screenshotName);
|
var costume = new Costume(canvas, screenshotName);
|
||||||
ide.currentSprite.addCostume(costume);
|
ide.currentSprite.addCostume(costume);
|
||||||
this.screenshotCount++;
|
this.screenshotCount++;
|
||||||
|
Canvas2Image.saveAsPNG(canvas);
|
||||||
};
|
};
|
||||||
|
|
||||||
// SpriteHighlightMorph /////////////////////////////////////////////////
|
// SpriteHighlightMorph /////////////////////////////////////////////////
|
||||||
|
@ -3797,7 +3798,7 @@ StageMorph.prototype.init = function (globals) {
|
||||||
this.blocksCache = {}; // not to be serialized (!)
|
this.blocksCache = {}; // not to be serialized (!)
|
||||||
this.paletteCache = {}; // not to be serialized (!)
|
this.paletteCache = {}; // not to be serialized (!)
|
||||||
this.lastAnswer = null; // last user input, do not persist
|
this.lastAnswer = null; // last user input, do not persist
|
||||||
this.active = []; // do not persist
|
this.activeSounds = []; // do not persist
|
||||||
|
|
||||||
this.trailsCanvas = null;
|
this.trailsCanvas = null;
|
||||||
this.isThreadSafe = false;
|
this.isThreadSafe = false;
|
||||||
|
@ -4716,7 +4717,6 @@ StageMorph.prototype.userMenu = function () {
|
||||||
menu.addItem(
|
menu.addItem(
|
||||||
"pic...",
|
"pic...",
|
||||||
function () {
|
function () {
|
||||||
//console.log(myself.fullImageClassic().toDataURL());
|
|
||||||
window.open(myself.fullImageClassic().toDataURL());
|
window.open(myself.fullImageClassic().toDataURL());
|
||||||
},
|
},
|
||||||
'open a new window\nwith a picture of the stage'
|
'open a new window\nwith a picture of the stage'
|
||||||
|
|
Ładowanie…
Reference in New Issue