From dbb58f21c43a857bd1317c87204b55e239ed12c8 Mon Sep 17 00:00:00 2001 From: chrisklus Date: Fri, 1 Apr 2022 14:22:49 -0600 Subject: [PATCH] Instrument question bar, see https://github.com/phetsims/center-and-variability/issues/119 --- js/common/view/SoccerScreenView.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/common/view/SoccerScreenView.ts b/js/common/view/SoccerScreenView.ts index 2ffd083b..141bc3be 100644 --- a/js/common/view/SoccerScreenView.ts +++ b/js/common/view/SoccerScreenView.ts @@ -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; @@ -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,