Skip to content

Commit

Permalink
improve keyboard help dialog wording, see #180
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Dec 22, 2022
1 parent 870cbc9 commit 7c84332
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions greenhouse-effect-strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
"valuePercentPattern": {
"value": "{{value}}%"
},
"sliderAndFluxMeterControls": {
"value": "Slider and Flux Meter Controls"
},
"concentrationPanel.greenhouseGasConcentration": {
"value": "Greenhouse Gas Concentration"
},
Expand Down
1 change: 1 addition & 0 deletions js/GreenhouseEffectStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type StringsType = {
'infraredStringProperty': LinkableProperty<string>;
'infraredAbsorbanceStringProperty': LinkableProperty<string>;
'valuePercentPatternStringProperty': LinkableProperty<string>;
'sliderAndFluxMeterControlsStringProperty': LinkableProperty<string>;
'concentrationPanel': {
'greenhouseGasConcentrationStringProperty': LinkableProperty<string>;
'lotsStringProperty': LinkableProperty<string>;
Expand Down
9 changes: 6 additions & 3 deletions js/common/view/GreenhouseEffectKeyboardHelpContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
*/

import BasicActionsKeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/BasicActionsKeyboardHelpSection.js';
import KeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/KeyboardHelpSection.js';
import SliderControlsKeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/SliderControlsKeyboardHelpSection.js';
import TwoColumnKeyboardHelpContent from '../../../../scenery-phet/js/keyboard/help/TwoColumnKeyboardHelpContent.js';
import TimingControlsKeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/TimingControlsKeyboardHelpSection.js';
import TwoColumnKeyboardHelpContent from '../../../../scenery-phet/js/keyboard/help/TwoColumnKeyboardHelpContent.js';
import greenhouseEffect from '../../greenhouseEffect.js';
import KeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/KeyboardHelpSection.js';
import GreenhouseEffectStrings from '../../GreenhouseEffectStrings.js';

class GreenhouseEffectKeyboardHelpContent extends TwoColumnKeyboardHelpContent {
public constructor() {
const sliderHelpSection = new SliderControlsKeyboardHelpSection();
const sliderHelpSection = new SliderControlsKeyboardHelpSection( {
headingStringProperty: GreenhouseEffectStrings.sliderAndFluxMeterControlsStringProperty
} );
const basicActionsHelpSection = new BasicActionsKeyboardHelpSection();

const timingControlsHelpSection = new TimingControlsKeyboardHelpSection();
Expand Down

0 comments on commit 7c84332

Please sign in to comment.