Skip to content

Commit

Permalink
disable showAnswers, #118
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <[email protected]>
  • Loading branch information
pixelzoom committed Jul 13, 2018
1 parent 47cd3fe commit f7f80aa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions js/common/BCEQueryParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },

Expand Down
3 changes: 1 addition & 2 deletions js/game/view/GamePlayNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down Expand Up @@ -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 } );
Expand Down
3 changes: 1 addition & 2 deletions js/introduction/view/IntroductionScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit f7f80aa

Please sign in to comment.