kopia lustrzana https://github.com/backface/turtlestitch
Display “empty” Contexts as empty rings
(e.g. continuations). Brian was complaining about empty continuations “sucking” up the watchers and value bubbles.pull/3/merge
rodzic
75d9adbfe2
commit
54fec68d78
|
@ -2227,3 +2227,4 @@ ______
|
||||||
------
|
------
|
||||||
* Objects: fixed “lost sprites bug” - ensure duplicated sprites keep wearing their current costume through save and re-load
|
* Objects: fixed “lost sprites bug” - ensure duplicated sprites keep wearing their current costume through save and re-load
|
||||||
* GUI, Objects: improve unique sprite- and costume names
|
* GUI, Objects: improve unique sprite- and costume names
|
||||||
|
* Threads: Display “empty” Contexts (e.g. continuations) as empty rings
|
||||||
|
|
15
threads.js
15
threads.js
|
@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.threads = '2014-July-22';
|
modules.threads = '2014-July-24';
|
||||||
|
|
||||||
var ThreadManager;
|
var ThreadManager;
|
||||||
var Process;
|
var Process;
|
||||||
|
@ -2854,7 +2854,18 @@ Context.prototype.image = function () {
|
||||||
ring.embed(block, this.isContinuation ? [] : this.inputs);
|
ring.embed(block, this.isContinuation ? [] : this.inputs);
|
||||||
return ring.fullImage();
|
return ring.fullImage();
|
||||||
}
|
}
|
||||||
return newCanvas();
|
|
||||||
|
// otherwise show an empty ring
|
||||||
|
ring.color = SpriteMorph.prototype.blockColor.other;
|
||||||
|
ring.setSpec('%rc %ringparms');
|
||||||
|
|
||||||
|
// also show my inputs, unless I'm a continuation
|
||||||
|
if (!this.isContinuation) {
|
||||||
|
this.inputs.forEach(function (inp) {
|
||||||
|
ring.parts()[1].addInput(inp);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return ring.fullImage();
|
||||||
};
|
};
|
||||||
|
|
||||||
// Context continuations:
|
// Context continuations:
|
||||||
|
|
Ładowanie…
Reference in New Issue