Skip to content

Commit

Permalink
Instrument question bar, see #119
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Apr 1, 2022
1 parent 24544f6 commit dbb58f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/common/view/SoccerScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import SoccerPlayerNode from './SoccerPlayerNode.js';
import PhetioGroup from '../../../../tandem/js/PhetioGroup.js';
import SoccerPlayer from '../model/SoccerPlayer.js';
import NumberLineNode from './NumberLineNode.js';
import merge from '../../../../phet-core/js/merge.js';

type SelfOptions = {
questionBarOptions: QuestionBarOptions;
Expand Down Expand Up @@ -103,7 +104,9 @@ class SoccerScreenView extends CAVScreenView {
// 0th soccer player is at the front of the line, and should also be in the front in z-ordering
soccerPlayerNodeGroup.getArrayCopy().reverse().forEach( soccerPlayerNode => soccerPlayerNode.moveToFront() );

this.questionBar = new QuestionBar( this.layoutBounds, this.visibleBoundsProperty, options.questionBarOptions );
this.questionBar = new QuestionBar( this.layoutBounds, this.visibleBoundsProperty, merge( {
tandem: options.tandem.createTandem( 'questionBar' )
}, options.questionBarOptions ) );
this.contentLayer.addChild( this.questionBar );
this.contentLayer.addChild( new KickButtonGroup( model, {
left: 25,
Expand Down

0 comments on commit dbb58f2

Please sign in to comment.