initial support for „sensing“ sprite-only custom block definitions

commented out for now
pull/3/merge
jmoenig 2014-01-08 13:24:30 +01:00
rodzic 8646dfc35e
commit 0020aeda14
2 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -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;
};

Wyświetl plik

@ -2048,3 +2048,4 @@ ______
140108
------
* Threads, Blocks, Objects: The FOR reporters 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