From f7f80aa12747ba66a6f783dafbb858a544e176c7 Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Fri, 13 Jul 2018 11:50:17 -0600 Subject: [PATCH] disable showAnswers, #118 Signed-off-by: Chris Malley --- js/common/BCEQueryParameters.js | 3 --- js/game/view/GamePlayNode.js | 3 +-- js/introduction/view/IntroductionScreenView.js | 3 +-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/js/common/BCEQueryParameters.js b/js/common/BCEQueryParameters.js index 0ea20862..54a24359 100644 --- a/js/common/BCEQueryParameters.js +++ b/js/common/BCEQueryParameters.js @@ -13,9 +13,6 @@ define( function( require ) { var BCEQueryParameters = QueryStringMachine.getAll( { - // shows answers, just below the reaction arrow in both screens - showAnswers: { type: 'flag' }, - // play all challenges for each level of the game, to get 100% test coverage playAll: { type: 'flag' }, diff --git a/js/game/view/GamePlayNode.js b/js/game/view/GamePlayNode.js index 527989ad..f122a8c0 100644 --- a/js/game/view/GamePlayNode.js +++ b/js/game/view/GamePlayNode.js @@ -11,7 +11,6 @@ define( function( require ) { // modules var balancingChemicalEquations = require( 'BALANCING_CHEMICAL_EQUATIONS/balancingChemicalEquations' ); var BCEConstants = require( 'BALANCING_CHEMICAL_EQUATIONS/common/BCEConstants' ); - var BCEQueryParameters = require( 'BALANCING_CHEMICAL_EQUATIONS/common/BCEQueryParameters' ); var BoxesNode = require( 'BALANCING_CHEMICAL_EQUATIONS/common/view/BoxesNode' ); var DerivedProperty = require( 'AXON/DerivedProperty' ); var Dimension2 = require( 'DOT/Dimension2' ); @@ -121,7 +120,7 @@ define( function( require ) { this.addChild( buttonsParent ); // developer stuff - if ( BCEQueryParameters.showAnswers ) { + if ( phet.chipper.queryParameters.showAnswers ) { // display correct coefficient at bottom center of the screen var answerNode = new Text( '', { font: new PhetFont( 12 ), bottom: this.layoutBounds.bottom - 5 } ); diff --git a/js/introduction/view/IntroductionScreenView.js b/js/introduction/view/IntroductionScreenView.js index d3ab84b9..446d8eb4 100644 --- a/js/introduction/view/IntroductionScreenView.js +++ b/js/introduction/view/IntroductionScreenView.js @@ -14,7 +14,6 @@ define( function( require ) { var balancingChemicalEquations = require( 'BALANCING_CHEMICAL_EQUATIONS/balancingChemicalEquations' ); var BarChartsNode = require( 'BALANCING_CHEMICAL_EQUATIONS/common/view/BarChartsNode' ); var BCEConstants = require( 'BALANCING_CHEMICAL_EQUATIONS/common/BCEConstants' ); - var BCEQueryParameters = require( 'BALANCING_CHEMICAL_EQUATIONS/common/BCEQueryParameters' ); var BoxesNode = require( 'BALANCING_CHEMICAL_EQUATIONS/common/view/BoxesNode' ); var Dimension2 = require( 'DOT/Dimension2' ); var EquationChoiceNode = require( 'BALANCING_CHEMICAL_EQUATIONS/introduction/view/EquationChoiceNode' ); @@ -122,7 +121,7 @@ define( function( require ) { this.addChild( comboBoxParent ); // show the answer when running in dev mode, bottom center - if ( BCEQueryParameters.showAnswers ) { + if ( phet.chipper.queryParameters.showAnswers ) { var answerNode = new Text( '', { font: new PhetFont( 12 ), bottom: equationChoiceNode.top - 5 } ); this.addChild( answerNode ); model.equationProperty.link( function( equation ) {