kopia lustrzana https://github.com/backface/turtlestitch
Fix some file names in exporting content
rodzic
dafb6146f6
commit
6f03f121ad
|
@ -1852,7 +1852,7 @@ SyntaxElementMorph.prototype.exportPictureWithResult = function (aBubble) {
|
|||
ctx.drawImage(scr, 0, pic.height - scr.height);
|
||||
ctx.drawImage(bub, scr.width + 2, 0);
|
||||
// request to open pic in new window.
|
||||
ide.saveCanvasAs(pic, ide.projetName + ' ' + localize('scrip pic'), true);
|
||||
ide.saveCanvasAs(pic, ide.projetName + ' ' + localize('script pic'), true);
|
||||
};
|
||||
|
||||
// SyntaxElementMorph code mapping
|
||||
|
|
2
gui.js
2
gui.js
|
@ -3098,7 +3098,7 @@ IDE_Morph.prototype.exportSprite = function (sprite) {
|
|||
+ '">'
|
||||
+ str
|
||||
+ '</sprites>';
|
||||
ide.saveXMLAs(str, sprite);
|
||||
ide.saveXMLAs(str, sprite.name);
|
||||
};
|
||||
|
||||
IDE_Morph.prototype.exportScriptsPicture = function () {
|
||||
|
|
|
@ -5737,8 +5737,11 @@ StageMorph.prototype.userMenu = function () {
|
|||
menu.addItem(
|
||||
"pic...",
|
||||
function () {
|
||||
// pass a canvas to be opened as a new window.
|
||||
ide.saveCanvasAs(myself.fullImageClassic(), 'stage', true);
|
||||
ide.saveCanvasAs(
|
||||
myself.fullImageClassic(),
|
||||
localize('stage'),
|
||||
true // open as new window
|
||||
);
|
||||
},
|
||||
'open a new window\nwith a picture of the stage'
|
||||
);
|
||||
|
|
Ładowanie…
Reference in New Issue