Skip to content

Commit

Permalink
convert sim-specific options dialog -> general preferences dialog, ph…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 23, 2022
1 parent 4ef33f8 commit 5a0e854
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions js/gases-intro-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import GasPropertiesConstants from '../../gas-properties/js/common/GasPropertiesConstants.js';
import GasPropertiesGlobalOptions from '../../gas-properties/js/common/GasPropertiesGlobalOptions.js';
import GasPropertiesGlobalOptionsNode from '../../gas-properties/js/common/view/GasPropertiesGlobalOptionsNode.js';
import PreferencesModel from '../../joist/js/preferences/PreferencesModel.js';
import Sim from '../../joist/js/Sim.js';
import simLauncher from '../../joist/js/simLauncher.js';
import { Utils } from '../../scenery/js/imports.js';
Expand All @@ -21,10 +22,12 @@ const simOptions = {

// Enabled for high-performance Sprites
webgl: true,

// Creates content for the Options dialog, accessible via the PhET menu
createOptionsDialogContent: tandem => new GasPropertiesGlobalOptionsNode( {
tandem: tandem
preferencesModel: new PreferencesModel( {
generalOptions: {
customPreferences: [ {
createContent: tandem => new GasPropertiesGlobalOptionsNode( { tandem: tandem } )
} ]
}
} ),

// Credits appear in the About dialog, accessible via the PhET menu
Expand Down

0 comments on commit 5a0e854

Please sign in to comment.