diff options
| author | jmoenig <jens@moenig.org> | 2014-01-08 13:24:30 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-01-08 13:24:30 +0100 |
| commit | 0020aeda14d7f7aea89f88c32fc06fcb3e077d40 (patch) | |
| tree | 610cf22bdaa19cef871aac92314c441f47f20fec /blocks.js | |
| parent | 8646dfc35ed3d11a2e23ecd545ecef47ef53f8b2 (diff) | |
| download | snap-0020aeda14d7f7aea89f88c32fc06fcb3e077d40.tar.gz snap-0020aeda14d7f7aea89f88c32fc06fcb3e077d40.zip | |
initial support for „sensing“ sprite-only custom block definitions
commented out for now
Diffstat (limited to 'blocks.js')
| -rw-r--r-- | blocks.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -6301,6 +6301,8 @@ InputSlotMorph.prototype.dropDownMenu = function () { if (Object.prototype.hasOwnProperty.call(choices, key)) { if (key[0] === '~') { menu.addLine(); + // } else if (key.indexOf('§_def') === 0) { + // menu.addItem(choices[key].blockInstance(), choices[key]); } else { menu.addItem(key, choices[key]); } @@ -6517,6 +6519,11 @@ InputSlotMorph.prototype.attributesMenu = function () { dict[name] = name; }); } + /* + obj.customBlocks.forEach(function (def, i) { + dict['§_def' + i] = def + }); + */ return dict; }; |
