-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create common help content and add slider and time control sections, #93
- Loading branch information
Showing
3 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2023, University of Colorado Boulder | ||
|
||
/** | ||
* Keyboard help content for My Solar System. | ||
* | ||
* @author Michael Kauzmann (PhET Interactive Simulations) | ||
*/ | ||
|
||
import mySolarSystem from '../../mySolarSystem.js'; | ||
import TwoColumnKeyboardHelpContent from '../../../../scenery-phet/js/keyboard/help/TwoColumnKeyboardHelpContent.js'; | ||
import BasicActionsKeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/BasicActionsKeyboardHelpSection.js'; | ||
import SliderControlsKeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/SliderControlsKeyboardHelpSection.js'; | ||
import TimeControlKeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/TimeControlKeyboardHelpSection.js'; | ||
|
||
export default class MySolarSystemKeyboardHelpContent extends TwoColumnKeyboardHelpContent { | ||
public constructor() { | ||
const sliderHelpSection = new SliderControlsKeyboardHelpSection(); | ||
const timeControlsHelpSection = new TimeControlKeyboardHelpSection(); | ||
const basicActionsHelpSection = new BasicActionsKeyboardHelpSection( { | ||
withCheckboxContent: true, | ||
withKeypadContent: true | ||
} ); | ||
|
||
super( [ timeControlsHelpSection, sliderHelpSection ], [ basicActionsHelpSection ] ); | ||
} | ||
} | ||
|
||
mySolarSystem.register( 'MySolarSystemKeyboardHelpContent', MySolarSystemKeyboardHelpContent ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters