Skip to content

Conversation

rschamp
Copy link
Contributor

@rschamp rschamp commented Nov 23, 2016

These events signal when any threads are running or when all threads have stopped running. This maps to whether the green flag or the stop button should be illuminated in the GUI.

I also cleaned up some inconsistencies in the other glow code since I was in there:

  • Runtime.SCRIPT_GLOW_ON/OFF now maps to 'SCRIPT_GLOW_ON/OFF' not 'STACK_GLOW_ON/OFF'
  • The signature of the emits from Runtime are now the same as when they're echoed by VirtualMachine. E.g., VISUAL_REPORT now emits an object from Runtime, just like VirtualMachine does.

Ray Schamp added 2 commits November 23, 2016 15:43
These events signal when any threads are running or when all threads have stopped running. This maps to whether the green flag or the stop button should be illuminated in the GUI.
this.redrawRequested = false;
var inactiveThreads = this.sequencer.stepThreads();
this._updateGlows(inactiveThreads);
this._setThreadCount(this.threads.length);

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@tmickel
Copy link
Contributor

tmickel commented Nov 24, 2016

LGTM other than the one comment about thread-counting. Thanks for cleaning up stuff!

@tmickel tmickel assigned rschamp and unassigned tmickel Nov 24, 2016
Also rename inactiveThreads -> doneThreads, since this describes them better. They are the threads that have completed in the step.
@rschamp rschamp merged commit 3989959 into scratchfoundation:develop Nov 28, 2016
@rschamp rschamp deleted the feature/flag-glows branch November 28, 2016 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants