summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/blocks.js b/blocks.js
index 61d8b01..e936c2c 100644
--- a/blocks.js
+++ b/blocks.js
@@ -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;