From 2c54645400bb6afe6ae4dea1f714dabc8c886708 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 22 Mar 2013 11:33:34 +0100 Subject: 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 bubbles --- gui.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gui.js') diff --git a/gui.js b/gui.js index 746746a..4ecb643 100644 --- a/gui.js +++ b/gui.js @@ -4172,7 +4172,18 @@ SpriteIconMorph.prototype.fixLayout = function () { // SpriteIconMorph menu 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; } menu.addItem("show", 'showSpriteOnStage'); menu.addLine(); -- cgit v1.3.1