diff options
| author | Jens Mönig <jens@moenig.org> | 2014-07-17 10:47:49 +0200 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2014-07-17 10:47:49 +0200 |
| commit | c11e4c7c6d67a3882d0bbb36cb039d807fa49acd (patch) | |
| tree | aa2f99c894553cd70be153a226d8d11bc109e973 /blocks.js | |
| parent | a34e140dab390c1749b7bdabe8fb3ecb0cab6013 (diff) | |
| parent | 3ca3d33642497b3b4e2a2d016f7a6824b681c5b1 (diff) | |
| download | snap-byow-c11e4c7c6d67a3882d0bbb36cb039d807fa49acd.tar.gz snap-byow-c11e4c7c6d67a3882d0bbb36cb039d807fa49acd.zip | |
Merge pull request #340 from cs10/extensions
Save stage/pentrails as costume (for animations)
Diffstat (limited to 'blocks.js')
| -rw-r--r-- | blocks.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -665,6 +665,18 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { // single-arg and specialized multi-arg slots: switch (spec) { + case '%imgsource': + part = new InputSlotMorph( + null, // text + false, // non-numeric + { + 'pen trails': ['pen trails'], + 'stage image': ['stage image'] + }, + true + ); + part.setContents(['pen trails']); + break; case '%inputs': part = new MultiArgMorph('%s', 'with inputs'); part.isStatic = false; |
