Closed terracoda closed 7 years ago
Thanks @terracoda. ResetAllButton needs to use scenery-phet/UtteranceQueue now that it is replacing scenery-phet/AriaHerald. That should solve the problem of overriding alerts.
@zepumph would you have time to work on this?
Yeah!
@jessegreenberg please review. I was not sure what the UtteranceQueue equilelent of AriaHerald.enabled
was, so to enable it again I am clearing the queue, and then unmuting it to "start over" after a reset. What do you think?
I agree that seems like the best way to do it with the current API.
Would it be useful to have a way to disable the UtteranceQueue like we could with AriaHerald?
If disabled, we no-op in addToFront
, addToBack
and next
?
That would save us a step and be a bit more explicit. Current api:
I'm not sure what the use case is, or if there is one, but it backs up the idea that we should have a "disable" "enable" feature set for Utterance Queue as well.
Then it seems like it might also be useful to pause the queue? Apart from disable and enable, to support that case we might want to
Maybe when the UtteranceQueue is paused, things can still be added, but when disabled it's a no-op
Yes, that sounds like a good way to categorize it.
I added enabled disabled, and I think it works really well for the reset alert in this issue. @jessegreenberg please review. Should we implement pause as well?
Looks great @zepumph, but I am wondering why you chose to no-op clear
when the queue is disabled? If the queue is disabled we might still want to quickly remove all utterances?
But I verified that ResetAllButton alerts are working correctly!
I agree. clear
is no longer a noop (spoken like 'nuup'). Closing
In #74, @terracoda said:
Alert for Reset: