Skip to content

Commit

Permalink
refactor sims to use screen-based keyboard help content, phetsims/joi…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 5, 2020
1 parent 63fa41b commit aa41c0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/balloons-and-static-electricity-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import Screen from '../../joist/js/Screen.js';
import Sim from '../../joist/js/Sim.js';
import simLauncher from '../../joist/js/simLauncher.js';
import Tandem from '../../tandem/js/Tandem.js';
import balloonsAndStaticElectricityStrings from './balloonsAndStaticElectricityStrings.js';
import BASEConstants from './balloons-and-static-electricity/BASEConstants.js';
import BASEModel from './balloons-and-static-electricity/model/BASEModel.js';
import BASEKeyboardHelpContent from './balloons-and-static-electricity/view/BASEKeyboardHelpContent.js';
import BASEView from './balloons-and-static-electricity/view/BASEView.js';
import balloonsAndStaticElectricityStrings from './balloonsAndStaticElectricityStrings.js';

const balloonsAndStaticElectricityTitleString = balloonsAndStaticElectricityStrings[ 'balloons-and-static-electricity' ].title;

Expand All @@ -32,7 +32,7 @@ simLauncher.launch( function() {
graphicArts: 'Sharon Siman-Tov',
thanks: 'Thanks to Mobile Learner Labs for working with the PhET development team to convert this simulation to HTML5.'
},
keyboardHelpNode: new BASEKeyboardHelpContent()
hasKeyboardHelpContent: true
};

const balloonsAndStaticElectricityScreenTandem = tandem.createTandem( 'balloonsAndStaticElectricityScreen' );
Expand All @@ -54,7 +54,8 @@ simLauncher.launch( function() {
},
{
backgroundColorProperty: BASEConstants.backgroundColorProperty,
tandem: balloonsAndStaticElectricityScreenTandem
tandem: balloonsAndStaticElectricityScreenTandem,
keyboardHelpNode: new BASEKeyboardHelpContent()
}
)
], simOptions ).start();
Expand Down

0 comments on commit aa41c0a

Please sign in to comment.