phetsims / bending-light

"Bending Light" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/bending-light
GNU General Public License v3.0
8 stars 8 forks source link

use SCENERY_PHET/TimeControlNode #386

Closed pixelzoom closed 3 years ago

pixelzoom commented 4 years ago

Noticed while working on https://github.com/phetsims/scenery-phet/issues/575.

bending-light currently has its own implementation, see BENDING_LIGHT/TimeControlNode. It should be using common code SCENERY_PHET/TimeControlNode.

One notable difference is that bending-light uses "Slow Motion", where common code uses "Slow". Another difference is the position of the radio buttons.

This is important for phet-io and a11y.

samreid commented 3 years ago

Fixed in the commit. @arouinfar is it OK that the new button says "Slow" instead of "Slow Motion"? I don't see an option in the common code TimeControlNode to change this, and I didn't recall the design discussions around whether that would be supported.

pixelzoom commented 3 years ago

"Slow" (and other speed labels) were standardized in https://github.com/phetsims/scenery-phet/issues/575#issuecomment-585424270. And the associated enumeration is:

const TimeSpeed = Enumeration.byKeys( [ 'FAST', 'NORMAL', 'SLOW' ] );

Unless there's a really good reason to deviate with "Slow Motion", I think we should try to stick to the standard labels, and not add yet-another option to TimeControlNode.

arouinfar commented 3 years ago

Thanks @pixelzoom! That saved me from trying to find the old discussion.

@samreid the desired design is to use the fast/normal/slow labels in all sims.

samreid commented 3 years ago

Sounds good, closing.