summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-03-22 11:33:34 +0100
committerjmoenig <jens@moenig.org>2013-03-22 11:33:34 +0100
commit2c54645400bb6afe6ae4dea1f714dabc8c886708 (patch)
tree0a37ae90ad5478f82eb95fa00a0f5625fd0ce9a5 /gui.js
parent408ed6285d1431c3e1667470e8839818e7509415 (diff)
downloadsnap-yow-2c54645400bb6afe6ae4dea1f714dabc8c886708.tar.gz
snap-yow-2c54645400bb6afe6ae4dea1f714dabc8c886708.zip
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
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js13
1 files changed, 12 insertions, 1 deletions
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();