From 2d377106d5cf5972505f530f6800e3630da37a0a Mon Sep 17 00:00:00 2001 From: jbphet Date: Tue, 29 Jun 2021 12:55:34 -0600 Subject: [PATCH] set soundPlayerIndex for level selection button, see https://github.com/phetsims/vegas/issues/89 --- js/solveit/view/EqualityExplorerLevelSelectionButton.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/solveit/view/EqualityExplorerLevelSelectionButton.js b/js/solveit/view/EqualityExplorerLevelSelectionButton.js index 91ca530b..8009bc37 100644 --- a/js/solveit/view/EqualityExplorerLevelSelectionButton.js +++ b/js/solveit/view/EqualityExplorerLevelSelectionButton.js @@ -35,7 +35,8 @@ class EqualityExplorerLevelSelectionButton extends LevelSelectionButton { listener: () => { phet.log && phet.log( `Level${scene.challengeGenerator.level} button pressed` ); sceneProperty.value = scene; - } + }, + soundPlayerIndex: scene.challengeGenerator.level - 1 } ); } }