From aa41c0aa44e503533a2f90286691e268c5dc480b Mon Sep 17 00:00:00 2001 From: zepumph Date: Mon, 5 Oct 2020 12:38:39 -0800 Subject: [PATCH] refactor sims to use screen-based keyboard help content, https://github.com/phetsims/joist/issues/668 --- js/balloons-and-static-electricity-main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/balloons-and-static-electricity-main.js b/js/balloons-and-static-electricity-main.js index a26b711e..b6b7d0d1 100644 --- a/js/balloons-and-static-electricity-main.js +++ b/js/balloons-and-static-electricity-main.js @@ -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; @@ -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' ); @@ -54,7 +54,8 @@ simLauncher.launch( function() { }, { backgroundColorProperty: BASEConstants.backgroundColorProperty, - tandem: balloonsAndStaticElectricityScreenTandem + tandem: balloonsAndStaticElectricityScreenTandem, + keyboardHelpNode: new BASEKeyboardHelpContent() } ) ], simOptions ).start();