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 9394b3e commit b738313
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions js/tambo-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ import tamboStrings from './tamboStrings.js';
const SOUND_OPTIONS_DIALOG_CONTENT = new SoundOptionsDialogContent();

// set up the simulation options
const keyboardHelpContent = new TamboKeyboardHelpContent();
const simOptions = {
credits: {
leadDesign: 'John Blanco'
},
keyboardHelpNode: keyboardHelpContent,
hasKeyboardHelpContent: true,
createOptionsDialogContent: () => SOUND_OPTIONS_DIALOG_CONTENT
};

Expand Down Expand Up @@ -63,6 +62,8 @@ function createScreenIcon( color1, color2, gradientType ) {
);
}

const keyboardHelpNode = new TamboKeyboardHelpContent();

simLauncher.launch( () => {
new Sim( tamboStrings.tambo.title, [

Expand All @@ -76,7 +77,8 @@ simLauncher.launch( () => {
homeScreenIcon: new ScreenIcon( createScreenIcon( '#a31515', '#b75e2a', 'radial' ), {
maxIconWidthProportion: 1,
maxIconHeightProportion: 1
} )
} ),
keyboardHelpNode: keyboardHelpNode
}
),

Expand All @@ -90,7 +92,8 @@ simLauncher.launch( () => {
homeScreenIcon: new ScreenIcon( createScreenIcon( '#71ddbf', '#8d49e5', 'linear' ), {
maxIconWidthProportion: 1,
maxIconHeightProportion: 1
} )
} ),
keyboardHelpNode: keyboardHelpNode
}
),

Expand All @@ -104,7 +107,8 @@ simLauncher.launch( () => {
homeScreenIcon: new ScreenIcon( createScreenIcon( '#ADFF2F', '#FFDAB9', 'radial' ), {
maxIconWidthProportion: 1,
maxIconHeightProportion: 1
} )
} ),
keyboardHelpNode: keyboardHelpNode
}
)

Expand Down

0 comments on commit b738313

Please sign in to comment.