summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-08-07 16:32:21 +0200
committerjmoenig <jens@moenig.org>2013-08-07 16:32:21 +0200
commit325ad2297b3588bd3eb5444203da35579b6944de (patch)
tree345e8701110d071965b1835786cc2e6ceb6f3896 /gui.js
parentf557ddeb2ab692f5fbbc31b1e7724461a4565c97 (diff)
downloadsnap-yow-325ad2297b3588bd3eb5444203da35579b6944de.tar.gz
snap-yow-325ad2297b3588bd3eb5444203da35579b6944de.zip
Sprite Nesting GUI
(still hidden and disabled at this time)
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/gui.js b/gui.js
index 7419ea7..0eb84a9 100644
--- a/gui.js
+++ b/gui.js
@@ -4834,6 +4834,18 @@ SpriteIconMorph.prototype.userMenu = function () {
menu.addItem("duplicate", 'duplicateSprite');
menu.addItem("delete", 'removeSprite');
menu.addLine();
+ if (this.object.anchor) {
+ menu.addItem(
+ localize('detach from') + ' ' + this.object.anchor.name,
+ function () {myself.object.detachFromAnchor(); }
+ );
+ }
+ if (this.object.parts.length) {
+ menu.addItem(
+ 'detach all parts',
+ function () {myself.object.detachAllParts(); }
+ );
+ }
menu.addItem("export...", 'exportSprite');
return menu;
};