Skip to content

Commit

Permalink
Upscaled sizings for ToElementChallenge for #201
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurabh Totey authored and Saurabh Totey committed Jul 1, 2019
1 parent 80759b7 commit 5ce86f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/game/view/CountsToElementChallengeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ define( function( require ) {
this.challengePresentationNode.addChild( particleCountsNode );

// Layout
particleCountsNode.centerX = layoutBounds.width * 0.25;
particleCountsNode.centerX = this.periodicTable.left / 2;
particleCountsNode.centerY = this.periodicTable.centerY;
}

Expand Down
3 changes: 3 additions & 0 deletions js/game/view/SchematicToElementChallengeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ define( function( require ) {
);
this.challengePresentationNode.addChild( nonInteractiveSchematicNode );

nonInteractiveSchematicNode.centerX = this.periodicTable.left / 2;
nonInteractiveSchematicNode.centerY = this.periodicTable.centerY;

this.disposeSchematicToElementChallengeView = function(){
nonInteractiveSchematicNode.dispose();
};
Expand Down
4 changes: 2 additions & 2 deletions js/game/view/ToElementChallengeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ define( function( require ) {
interactiveMax: 118,
cellDimension: CELL_DIMENSION,
enabledCellColor: new LinearGradient( 0, 0, 0, CELL_DIMENSION ).addColorStop( 0, 'white' ).addColorStop( 1, 'rgb( 240, 240, 240 )' ),
selectedCellColor: 'yellow'
selectedCellColor: 'yellow',
scale: 1.02
} );
this.periodicTable.scale( 0.85 ); // scale value empirically determined
this.interactiveAnswerNode.addChild( this.periodicTable );

// Challenge title
Expand Down

0 comments on commit 5ce86f6

Please sign in to comment.