Skip to content

Commit

Permalink
'mass' -> 'density' when constant radius is checked, see phetsims/gra…
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarlow12 committed Dec 10, 2018
1 parent 104fe8f commit 73a4268
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ define( function( require ) {
var spherePositionHelpTextString = ISLCA11yStrings.spherePositionHelpText.value;
var massControlsLabelString = GravityForceLabA11yStrings.massControlsLabel.value;
var massControlsHelpTextBillionsString = GravityForceLabA11yStrings.massControlsHelpTextBillions.value;
var massControlsHelpTextDensityBillionsString = GravityForceLabA11yStrings.massControlsHelpTextDensityBillions.value;
var forceValuesCheckboxHelpTextString = ISLCA11yStrings.forceValuesCheckboxHelpText.value;
var constantSizeCheckboxHelpTextString = GravityForceLabA11yStrings.constantSizeCheckboxHelpText.value;
var distanceCheckboxHelpTextString = GFLBA11yStrings.distanceCheckboxHelpText.value;
Expand Down Expand Up @@ -171,6 +172,9 @@ define( function( require ) {
} );
massControlsNode.addChild( massControlBox );

model.constantRadiusProperty.link( function( constantRadius ) {
massControlsNode.descriptionContent = constantRadius ? massControlsHelpTextBillionsString : massControlsHelpTextDensityBillionsString;
} );

var checkboxItems = [
new ISLCCheckboxItem( forceValuesString, model.forceValuesProperty, {
Expand Down

0 comments on commit 73a4268

Please sign in to comment.