Skip to content

Commit

Permalink
Renamed LevelSelectionButton => LevelSelectionItemNode, see phetsims/…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Aug 7, 2017
1 parent f93023e commit 2406c4a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/game/view/LevelSelectionNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ define( function( require ) {
var BCEConstants = require( 'BALANCING_CHEMICAL_EQUATIONS/common/BCEConstants' );
var HBox = require( 'SCENERY/nodes/HBox' );
var inherit = require( 'PHET_CORE/inherit' );
var LevelSelectionButton = require( 'VEGAS/LevelSelectionButton' );
var LevelSelectionItemNode = require( 'VEGAS/LevelSelectionItemNode' );
var MoleculeFactory = require( 'BALANCING_CHEMICAL_EQUATIONS/common/model/MoleculeFactory' );
var Node = require( 'SCENERY/nodes/Node' );
var PhetFont = require( 'SCENERY_PHET/PhetFont' );
Expand Down Expand Up @@ -52,7 +52,7 @@ define( function( require ) {
// buttons
var buttons = [];
for ( var level = model.LEVELS_RANGE.min; level <= model.LEVELS_RANGE.max; level++ ) {
buttons.push( createLevelSelectionButton( level, model, viewProperties.timerEnabledProperty ) );
buttons.push( createLevelSelectionItemNode( level, model, viewProperties.timerEnabledProperty ) );
}
var buttonsParent = new HBox( {
children: buttons,
Expand Down Expand Up @@ -106,9 +106,9 @@ define( function( require ) {
* @param {number} level
* @param {GameModel} model
* @param {Property.<number>} bestTimeVisibleProperty
* @returns {LevelSelectionButton}
* @returns {LevelSelectionItemNode}
*/
var createLevelSelectionButton = function( level, model, bestTimeVisibleProperty ) {
var createLevelSelectionItemNode = function( level, model, bestTimeVisibleProperty ) {

// 'Level N' centered above icon
var image = new levelImagesConstructors[ level ]( _.extend( { scale: 2 }, BCEConstants.ATOM_OPTIONS ) );
Expand All @@ -118,7 +118,7 @@ define( function( require ) {
} );
var icon = new VBox( { children: [ label, image ], spacing: 10 } );

return new LevelSelectionButton(
return new LevelSelectionItemNode(
icon,
model.getNumberOfEquations( level ),
function() {
Expand Down

0 comments on commit 2406c4a

Please sign in to comment.