mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-17 16:59:43 -04:00
Better glows (#152)
* Strip out old script glowing in thread management * Add new tracking mechanism for glowing scripts * Track parents and use them to determine script glows * Use top-block for a thread if there's nothing on the stack * Remove `console.log`
This commit is contained in:
parent
797f844de3
commit
5df0acc895
7 changed files with 107 additions and 28 deletions
src/engine
|
@ -28,6 +28,12 @@ function Thread (firstBlock) {
|
|||
* @type {number}
|
||||
*/
|
||||
this.status = 0; /* Thread.STATUS_RUNNING */
|
||||
|
||||
/**
|
||||
* Whether the thread requests its script to glow during this frame.
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.requestScriptGlowInFrame = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue