summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-01-08 13:24:30 +0100
committerjmoenig <jens@moenig.org>2014-01-08 13:24:30 +0100
commit0020aeda14d7f7aea89f88c32fc06fcb3e077d40 (patch)
tree610cf22bdaa19cef871aac92314c441f47f20fec
parent8646dfc35ed3d11a2e23ecd545ecef47ef53f8b2 (diff)
downloadsnap-byow-0020aeda14d7f7aea89f88c32fc06fcb3e077d40.tar.gz
snap-byow-0020aeda14d7f7aea89f88c32fc06fcb3e077d40.zip
initial support for „sensing“ sprite-only custom block definitions
commented out for now
-rw-r--r--blocks.js7
-rwxr-xr-xhistory.txt1
2 files changed, 8 insertions, 0 deletions
diff --git a/blocks.js b/blocks.js
index 619a487..8b6bcc2 100644
--- a/blocks.js
+++ b/blocks.js
@@ -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;
};
diff --git a/history.txt b/history.txt
index d205744..37a90a6 100755
--- a/history.txt
+++ b/history.txt
@@ -2048,3 +2048,4 @@ ______
140108
------
* Threads, Blocks, Objects: The FOR reporter’s first input now also accepts blocks and scripts („rings“), and reports a copy that is bound to the sprite indicated by the second input. This lets you „zombify“ (or remote-control) sprites (and create custom TELL and ASK blocks)
+* Blocks: initial support for „sensing“ sprite-only custom block definitions, commented out for now