Skip to content

Commit

Permalink
disable showAnswers, #51
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 91b1506 commit 3351a21
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions js/common/RPALQueryParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ define( function( require ) {

var RPALQueryParameters = QueryStringMachine.getAll( {

// shows answers at the bottom of the Game screen, and adds 'Test', 'Skip', 'Replay' buttons
showAnswers: { type: 'flag' },

// plays all reactions for each level of the game
playAll: { type: 'flag' }
} );
Expand Down
3 changes: 1 addition & 2 deletions js/game/view/ChallengeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ define( function( require ) {
var RPALColors = require( 'REACTANTS_PRODUCTS_AND_LEFTOVERS/common/RPALColors' );
var RPALConstants = require( 'REACTANTS_PRODUCTS_AND_LEFTOVERS/common/RPALConstants' );
var RPALFont = require( 'REACTANTS_PRODUCTS_AND_LEFTOVERS/common/view/RPALFont' );
var RPALQueryParameters = require( 'REACTANTS_PRODUCTS_AND_LEFTOVERS/common/RPALQueryParameters' );
var Text = require( 'SCENERY/nodes/Text' );

// strings
Expand Down Expand Up @@ -302,7 +301,7 @@ define( function( require ) {
//------------------------------------------------------------------------------------

// The answer to the current challenge, bottom center
if ( RPALQueryParameters.showAnswers ) {
if ( phet.chipper.queryParameters.showAnswers ) {
this.addChild( new Text( DevStringUtils.quantitiesString( reaction ), {
fill: 'red',
font: new RPALFont( 12 ),
Expand Down
3 changes: 1 addition & 2 deletions js/game/view/PlayNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ define( function( require ) {
var Node = require( 'SCENERY/nodes/Node' );
var reactantsProductsAndLeftovers = require( 'REACTANTS_PRODUCTS_AND_LEFTOVERS/reactantsProductsAndLeftovers' );
var RPALFont = require( 'REACTANTS_PRODUCTS_AND_LEFTOVERS/common/view/RPALFont' );
var RPALQueryParameters = require( 'REACTANTS_PRODUCTS_AND_LEFTOVERS/common/RPALQueryParameters' );
var ScoreDisplayLabeledNumber = require( 'VEGAS/ScoreDisplayLabeledNumber' );

/**
Expand Down Expand Up @@ -65,7 +64,7 @@ define( function( require ) {
this.addChild( statusBar );

// Developer controls at top-right, below status bar
if ( RPALQueryParameters.showAnswers ) {
if ( phet.chipper.queryParameters.showAnswers ) {
this.addChild( new DevGameControls( model, {
right: layoutBounds.right - 5,
top: statusBar.bottom + 5
Expand Down
2 changes: 1 addition & 1 deletion js/game/view/SettingsNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ define( function( require ) {
Node.call( this, options );

// 'Test' button at top right, runs a sanity test on the challenge generator
if ( RPALQueryParameters.showAnswers && !RPALQueryParameters.playAll ) {
if ( phet.chipper.queryParameters.showAnswers && !RPALQueryParameters.playAll ) {
var testButton = new TextPushButton( 'Test', {
font: new RPALFont( 10 ),
baseColor: 'red',
Expand Down

0 comments on commit 3351a21

Please sign in to comment.