Fix some file names in exporting content

dev
Michael Ball 2015-11-16 18:31:19 -08:00
rodzic dafb6146f6
commit 6f03f121ad
3 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -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
Wyświetl plik

@ -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 () {

Wyświetl plik

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