-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed SoundPlayer to ISoundPlayer, see phetsims/tambo#160
- Loading branch information
Showing
8 changed files
with
28 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,12 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import StringUtils from '../../../../phetcommon/js/util/StringUtils.js'; | ||
import { Shape } from '../../../../kite/js/imports.js'; | ||
import StringUtils from '../../../../phetcommon/js/util/StringUtils.js'; | ||
import PhetFont from '../../../../scenery-phet/js/PhetFont.js'; | ||
import { ButtonListener } from '../../../../scenery/js/imports.js'; | ||
import { HBox } from '../../../../scenery/js/imports.js'; | ||
import { Image } from '../../../../scenery/js/imports.js'; | ||
import { Text } from '../../../../scenery/js/imports.js'; | ||
import { ButtonListener, HBox, Image, Text } from '../../../../scenery/js/imports.js'; | ||
import RectangularPushButton from '../../../../sun/js/buttons/RectangularPushButton.js'; | ||
import SoundPlayer from '../../../../tambo/js/SoundPlayer.js'; | ||
import nullSoundPlayer from '../../../../tambo/js/shared-sound-players/nullSoundPlayer.js'; | ||
import splitBlue_png from '../../../images/splitBlue_png.js'; | ||
import buildAMolecule from '../../buildAMolecule.js'; | ||
import buildAMoleculeStrings from '../../buildAMoleculeStrings.js'; | ||
|
@@ -72,7 +69,7 @@ class MoleculeControlsHBox extends HBox { | |
cursor: 'pointer', | ||
xMargin: 0, // Setting margins to zero so the 'X' image takes up the whole button view | ||
yMargin: 0, | ||
soundPlayer: SoundPlayer.NO_SOUND | ||
soundPlayer: nullSoundPlayer | ||
} ); | ||
buttonBreak.touchArea = buttonBreak.childBounds.dilated( DILATION_FACTOR ); | ||
buttonBreak.addInputListener( new ButtonListener( { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters