Skip to content
Snippets Groups Projects
Commit 46daa7bd authored by cnking's avatar cnking
Browse files

updated picture board and images for alpha release

parent c067b719
No related branches found
No related tags found
No related merge requests found
......@@ -53,19 +53,34 @@ class Key extends Component {
textAlign: "center"
}
}
styleImage(){
return {
height: 50,
width: 50
}
}
render() {
const { index } = this.props;
const { letterArr } = this.props;
var images = {
Yes: require('./images/Yes.png'),
No: require('./images/No.png')
yes: require('./images/yes.png'),
no: require('./images/no.png'),
Me: require('./images/me.png'),
stop: require('./images/stop.png'),
help: require('./images/help.png'),
more: require('./images/more.png'),
You: require('./images/you.png'),
go: require('./images/go.png'),
want: require('./images/want.png'),
question: require('./images/question.png'),
turn: require('./images/turn.png'),
that: require('./images/that.png'),
}
return (
<TouchableOpacity style={this.styleKey()} onPress={() => this.onKeyPress()}>
<Image
<Image style={this.styleImage()}
source = {images[letterArr[index]]}
></Image>
<Text style={this.styleText()}>
......
......@@ -31,13 +31,13 @@ class PicBoard extends Component {
this.state = {
index: 0,
letterArr: ["Yes", "No", "del ", "", "", "clr "],
deleteKeyIdx: 2,
emptyKeyIdx: 4,
spaceBarIdx: 5,
clearKeyIdx: 6,
numRows: 2,
numCols: 3,
letterArr: ["Me", "stop", "help", "more", "You", "go", "want", "question", "turn", "that", "yes", "no"],
deleteKeyIdx: -1,
emptyKeyIdx: -1,
spaceBarIdx: -1,
clearKeyIdx: -1,
numRows: 3,
numCols: 4,
currSentence: "",
selectTimerObj: null,
selectTimerDelay: 2000
......@@ -79,7 +79,7 @@ class PicBoard extends Component {
}
else if (newIndex == spaceBarIdx) {
this.setState({
currSentence: this.state.currSentence + ' '
currSentence: ' '
});
}
else if (newIndex == clearKeyIdx) {
......@@ -89,8 +89,7 @@ class PicBoard extends Component {
}
else {
this.setState({
currSentence: this.state.currSentence +
this.state.letterArr[newIndex]
currSentence: this.state.letterArr[newIndex]
});
}
}
......
images/No.png

13.1 KiB | W: | H:

images/No.png

12.3 KiB | W: | H:

images/No.png
images/No.png
images/No.png
images/No.png
  • 2-up
  • Swipe
  • Onion skin
images/Yes.png

7.97 KiB | W: | H:

images/Yes.png

15.9 KiB | W: | H:

images/Yes.png
images/Yes.png
images/Yes.png
images/Yes.png
  • 2-up
  • Swipe
  • Onion skin
images/go.png

27.8 KiB

images/help.png

28.6 KiB

images/me.png

43.5 KiB

images/more.png

11.6 KiB

images/question.png

33 KiB

images/stop.png

24.6 KiB

images/that.png

19.7 KiB

images/turn.png

22.6 KiB

images/want.png

22.1 KiB

images/you.png

38.4 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment