From 85ebc2369b86efc5e5a6988e74f7a01d1006e9f1 Mon Sep 17 00:00:00 2001 From: Viraj Mahesh Date: Mon, 10 Mar 2014 22:21:20 -0700 Subject: Added ability to save pen trails Added dropdown menu to choose what to save --- blocks.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'blocks.js') diff --git a/blocks.js b/blocks.js index 480545d..04d10e8 100644 --- a/blocks.js +++ b/blocks.js @@ -665,6 +665,19 @@ 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']); + part.canBeEmpty = false; + break; case '%inputs': part = new MultiArgMorph('%s', 'with inputs'); part.isStatic = false; -- cgit v1.3.1 From a9636e62204e1815e6bf3134f876322f8c387d4f Mon Sep 17 00:00:00 2001 From: Viraj Mahesh Date: Wed, 12 Mar 2014 20:12:54 -0700 Subject: Removed part.canBeEmpty = false; for consistency --- blocks.js | 1 - 1 file changed, 1 deletion(-) (limited to 'blocks.js') diff --git a/blocks.js b/blocks.js index 04d10e8..21c4326 100644 --- a/blocks.js +++ b/blocks.js @@ -676,7 +676,6 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { true ); part.setContents(['pen trails']); - part.canBeEmpty = false; break; case '%inputs': part = new MultiArgMorph('%s', 'with inputs'); -- cgit v1.3.1