From eaf9fa01ee45ce90765d6d8bb5da4e5ef97c4db2 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Tue, 22 Feb 2022 12:30:30 -0700 Subject: [PATCH] Basics: no Options dialog, default to 'direct', https://github.com/phetsims/geometric-optics-basics/issues/2 --- js/geometric-optics-basics-main.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/js/geometric-optics-basics-main.ts b/js/geometric-optics-basics-main.ts index 985397f..8e1fd11 100644 --- a/js/geometric-optics-basics-main.ts +++ b/js/geometric-optics-basics-main.ts @@ -7,7 +7,7 @@ */ import GOConstants from '../../geometric-optics/js/common/GOConstants.js'; -import GOGlobalOptionsNode from '../../geometric-optics/js/common/view/GOGlobalOptionsNode.js'; +import GOGlobalOptions from '../../geometric-optics/js/common/GOGlobalOptions.js'; import LensScreen from '../../geometric-optics/js/lens/LensScreen.js'; import MirrorScreen from '../../geometric-optics/js/mirror/MirrorScreen.js'; import Sim from '../../joist/js/Sim.js'; @@ -15,15 +15,13 @@ import simLauncher from '../../joist/js/simLauncher.js'; import Tandem from '../../tandem/js/Tandem.js'; import geometricOpticsBasicsStrings from './geometricOpticsBasicsStrings.js'; +// ?focalLengthControl is ignored, and the 'direct' focal-length model is used. +GOGlobalOptions.focalLengthControlTypeProperty.value = 'direct'; + const simOptions = { credits: GOConstants.CREDITS, - // Creates content for the Options dialog, accessible via the PhET menu - createOptionsDialogContent: ( tandem: Tandem ) => new GOGlobalOptionsNode( { - tandem: tandem - } ), - // pdom options hasKeyboardHelpContent: true };