Skip to content

Commit

Permalink
register Alerter Utterances to the ScreenView, see #298
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Apr 16, 2022
1 parent 53bd64b commit 2adba8f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions js/friction/view/FrictionScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,14 @@ class FrictionScreenView extends ScreenView {

// voicing - Make is so that the Utterances of each Alerter cannot be announced unless the chemistryBookNode
// is globally visible and voicingVisible in the display
Voicing.registerUtteranceToVoicingNode( temperatureIncreasingAlerter.maxTempUtterance, chemistryBookNode );
Voicing.registerUtteranceToVoicingNode( temperatureIncreasingAlerter.temperatureJiggleUtterance, chemistryBookNode );
Voicing.registerUtteranceToVoicingNode( temperatureDecreasingAlerter.utterance, chemistryBookNode );
Voicing.registerUtteranceToVoicingNode( breakAwayAlerter.utterance, chemistryBookNode );
Voicing.registerUtteranceToVoicingNode( bookMovementAlerter.bottomDescriptionUtterance, chemistryBookNode );
Voicing.registerUtteranceToVoicingNode( bookMovementAlerter.bottomVoicingUtterance, chemistryBookNode );
Voicing.registerUtteranceToVoicingNode( bookMovementAlerter.moveDownToRubHarderUtterance, chemistryBookNode );
Voicing.registerUtteranceToVoicingNode( atomsJiggleTinyBitUtterance, chemistryBookNode );
Voicing.registerUtteranceToNode( temperatureIncreasingAlerter.maxTempUtterance, this );
Voicing.registerUtteranceToNode( temperatureIncreasingAlerter.temperatureJiggleUtterance, this );
Voicing.registerUtteranceToNode( temperatureDecreasingAlerter.utterance, this );
Voicing.registerUtteranceToNode( breakAwayAlerter.utterance, this );
Voicing.registerUtteranceToNode( bookMovementAlerter.bottomDescriptionUtterance, this );
Voicing.registerUtteranceToNode( bookMovementAlerter.bottomVoicingUtterance, this );
Voicing.registerUtteranceToNode( bookMovementAlerter.moveDownToRubHarderUtterance, this );
Voicing.registerUtteranceToNode( atomsJiggleTinyBitUtterance, this );

// @private
this.resetFrictionScreenView = () => {
Expand Down

0 comments on commit 2adba8f

Please sign in to comment.