From 325ad2297b3588bd3eb5444203da35579b6944de Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 7 Aug 2013 16:32:21 +0200 Subject: Sprite Nesting GUI (still hidden and disabled at this time) --- gui.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gui.js') 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; }; -- cgit v1.3.1