Skip to content

Commit

Permalink
add overview buttons, #363
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 7, 2022
1 parent 937bf0a commit d6b998a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/create/view/CreateScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ class CreateScreenView extends RAPScreenView {
super.reset();
}

/**
* To support voicing.
* @override
* @public
*/
public getVoicingOverviewContent(): string {
return ratioAndProportionStrings.a11y.create.overviewSentence;
}

/**
* To support voicing.
* @override
Expand Down
9 changes: 9 additions & 0 deletions js/discover/view/DiscoverScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ class DiscoverScreenView extends RAPScreenView {
super.layout( bounds );
}

/**
* To support voicing.
* @override
* @public
*/
public getVoicingOverviewContent(): string {
return ratioAndProportionStrings.a11y.discover.overviewSentence;
}

/**
* To support voicing.
* @override
Expand Down
2 changes: 2 additions & 0 deletions js/ratioAndProportionStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ type StringsType = {
'paragraph3': string,
'interactionHint': string
},
'overviewSentence': string,
'challengesHelpText': string,
'challenge1Lowercase': string,
'challenge2Lowercase': string,
Expand All @@ -152,6 +153,7 @@ type StringsType = {
'paragraph2': string,
'interactionHint': string
},
'overviewSentence': string,
'challenge': string,
'tickMarkRangeHelpText': string,
'tickMarkRangeContextResponse': string,
Expand Down
6 changes: 6 additions & 0 deletions ratio-and-proportion-strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@
"value": "Move hands up and down to explore and discover different challenges."
}
},
"overviewSentence": {
"value": "The Discover Screen changes as you play with it.\nA tall space contains two interactive hands, a Left Hand and a Right Hand. You can move the Left Hand and the Right Hand up and down individually, or activate Both Hands to move both hands at the same time. As you move the hands up and down, you will get closer to or farther from the challenge ratio, and closer or farther from a dark green screen.\nTick mark options allow you to explore the vertical space with evenly-spaced horizontal lines. \nThere are different challenges to explore, and a button to reset the sim."
},
"challengesHelpText": {
"value": "Choose a challenge, then move hands to explore it."
},
Expand Down Expand Up @@ -383,6 +386,9 @@
"value": "Explore current challenge, or look for My Challenge to create your own."
}
},
"overviewSentence": {
"value": "The Create Screen changes as you play with it.\nHere, you can create your own Challenge Ratio. A tall space contains two interactive hands, a Left Hand and a Right Hand. You can move the Left Hand and the Right Hand up and down individually, or activate Both Hands to move both hands at the same time. As you move the hands up and down, you will get closer to or farther from the Challenge Ratio, unless you lock the ratio when screen is darkest green.\nTick mark options allow you to explore the vertical space with evenly-spaced horizontal lines, and you can increase the tick mark range to explore larger numbers. \nFinally, there is a button to reset the sim."
},
"challenge": {
"value": "challenge"
},
Expand Down

0 comments on commit d6b998a

Please sign in to comment.