changed the visualization for an empty context to reporter-ring

snap7
jmoenig 2021-12-03 13:08:16 +01:00
rodzic 604eb74352
commit 794ff6abeb
3 zmienionych plików z 13 dodań i 1 usunięć

Wyświetl plik

@ -70,6 +70,7 @@
### 2021-12-03
* blocks, threads: block-assembly support for multi-args, experimental
* threads: changed the visualization for an empty context to reporter-ring
### 2021-12-02
* blocks, threads: block-assembly support refactorings, experimental

Wyświetl plik

@ -9934,6 +9934,7 @@ InputSlotMorph.prototype.gettablesMenu = function () {
dict['temporary?'] = ['temporary?'];
}
dict.name = ['name'];
// dict.scripts = ['scripts']; // not yet ready
dict.costume = ['costume'];
dict.costumes = ['costumes'];
dict.sounds = ['sounds'];

Wyświetl plik

@ -5613,6 +5613,16 @@ Process.prototype.reportGet = function (query) {
return thisObj.name;
case 'stage':
return thisObj.parentThatIsA(StageMorph);
/* // not yet ready
case 'scripts':
return new List(
thisObj.scripts.children.filter(
each => each instanceof BlockMorph
).map(
each => each.fullCopy().reify()
)
);
*/
case 'costume':
return thisObj.costume;
case 'costumes':
@ -6924,7 +6934,7 @@ Context.prototype.image = function () {
// otherwise show an empty ring
ring.color = SpriteMorph.prototype.blockColor.other;
ring.setSpec('%rc %ringparms');
ring.setSpec('%rr %ringparms');
// also show my inputs, unless I'm a continuation
if (!this.isContinuation) {