kopia lustrzana https://github.com/backface/turtlestitch
Stage screenshots
the stage's context menu, and likewise the stage icon's context menu in the corral, now let you export a screenshot of the stage including all pen trails, sprites, watchers and speech bubblespull/3/merge
rodzic
408ed6285d
commit
2c54645400
13
gui.js
13
gui.js
|
@ -4172,7 +4172,18 @@ SpriteIconMorph.prototype.fixLayout = function () {
|
||||||
// SpriteIconMorph menu
|
// SpriteIconMorph menu
|
||||||
|
|
||||||
SpriteIconMorph.prototype.userMenu = function () {
|
SpriteIconMorph.prototype.userMenu = function () {
|
||||||
var menu = new MenuMorph(this);
|
var menu = new MenuMorph(this),
|
||||||
|
myself = this;
|
||||||
|
if (this.object instanceof StageMorph) {
|
||||||
|
menu.addItem(
|
||||||
|
'pic...',
|
||||||
|
function () {
|
||||||
|
window.open(myself.object.fullImageClassic().toDataURL());
|
||||||
|
},
|
||||||
|
'open a new window\nwith a picture of the stage'
|
||||||
|
);
|
||||||
|
return menu;
|
||||||
|
}
|
||||||
if (!(this.object instanceof SpriteMorph)) {return null; }
|
if (!(this.object instanceof SpriteMorph)) {return null; }
|
||||||
menu.addItem("show", 'showSpriteOnStage');
|
menu.addItem("show", 'showSpriteOnStage');
|
||||||
menu.addLine();
|
menu.addLine();
|
||||||
|
|
|
@ -1557,3 +1557,4 @@ ______
|
||||||
* Blocks, GUI: "Zoom blocks…" feature in the settings menu (no longer hidden)
|
* Blocks, GUI: "Zoom blocks…" feature in the settings menu (no longer hidden)
|
||||||
* Objects: numeric prompters for watcher's sliderMin/Max
|
* Objects: numeric prompters for watcher's sliderMin/Max
|
||||||
* translation updates
|
* translation updates
|
||||||
|
* Objects: 'pic...' screenshot feature for the stage
|
|
@ -791,6 +791,10 @@ SnapTranslator.dict.de = {
|
||||||
// stage:
|
// stage:
|
||||||
'show all':
|
'show all':
|
||||||
'Alles zeigen',
|
'Alles zeigen',
|
||||||
|
'pic...':
|
||||||
|
'Bild exportieren...',
|
||||||
|
'open a new window\nwith a picture of the stage':
|
||||||
|
'ein neues Browserfenster mit einem\nBild der B\u00fchne \u00f6ffnen',
|
||||||
|
|
||||||
// scripting area
|
// scripting area
|
||||||
'clean up':
|
'clean up':
|
||||||
|
|
10
objects.js
10
objects.js
|
@ -3896,7 +3896,8 @@ StageMorph.prototype.clear = function () {
|
||||||
|
|
||||||
StageMorph.prototype.userMenu = function () {
|
StageMorph.prototype.userMenu = function () {
|
||||||
var ide = this.parentThatIsA(IDE_Morph),
|
var ide = this.parentThatIsA(IDE_Morph),
|
||||||
menu = new MenuMorph(this);
|
menu = new MenuMorph(this),
|
||||||
|
myself = this;
|
||||||
|
|
||||||
if (ide && ide.isAppMode) {
|
if (ide && ide.isAppMode) {
|
||||||
menu.addItem('help', 'nop');
|
menu.addItem('help', 'nop');
|
||||||
|
@ -3904,6 +3905,13 @@ StageMorph.prototype.userMenu = function () {
|
||||||
}
|
}
|
||||||
menu.addItem("edit", 'edit');
|
menu.addItem("edit", 'edit');
|
||||||
menu.addItem("show all", 'showAll');
|
menu.addItem("show all", 'showAll');
|
||||||
|
menu.addItem(
|
||||||
|
"pic...",
|
||||||
|
function () {
|
||||||
|
window.open(myself.fullImageClassic().toDataURL());
|
||||||
|
},
|
||||||
|
'open a new window\nwith a picture of the stage'
|
||||||
|
);
|
||||||
return menu;
|
return menu;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue