diff options
| author | jmoenig <jens@moenig.org> | 2013-08-07 16:32:21 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-08-07 16:32:21 +0200 |
| commit | 325ad2297b3588bd3eb5444203da35579b6944de (patch) | |
| tree | 345e8701110d071965b1835786cc2e6ceb6f3896 /gui.js | |
| parent | f557ddeb2ab692f5fbbc31b1e7724461a4565c97 (diff) | |
| download | snap-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.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; }; |
