summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorViraj Mahesh <virajmahesh@gmail.com>2014-03-10 22:21:20 -0700
committerViraj Mahesh <virajmahesh@gmail.com>2014-03-10 22:21:20 -0700
commit85ebc2369b86efc5e5a6988e74f7a01d1006e9f1 (patch)
tree2012e057cd3d1272263ddc40bc8b140b10236231 /blocks.js
parent9f00665852bb41db193634740f8a649238ec162c (diff)
downloadsnap-yow-85ebc2369b86efc5e5a6988e74f7a01d1006e9f1.tar.gz
snap-yow-85ebc2369b86efc5e5a6988e74f7a01d1006e9f1.zip
Added ability to save pen trails
Added dropdown menu to choose what to save
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js13
1 files changed, 13 insertions, 0 deletions
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;