From 794ff6abeb786dfc60e40c1d87a504da0fe2f14d Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 3 Dec 2021 13:08:16 +0100 Subject: [PATCH] changed the visualization for an empty context to reporter-ring --- HISTORY.md | 1 + src/blocks.js | 1 + src/threads.js | 12 +++++++++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index c4586c12..4ea0f111 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/src/blocks.js b/src/blocks.js index 6b0a17dd..ba6c6f7c 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -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']; diff --git a/src/threads.js b/src/threads.js index 2d5c3635..182be354 100644 --- a/src/threads.js +++ b/src/threads.js @@ -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) {