Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Started adding languages and flipped top bar image #45

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
225 changes: 225 additions & 0 deletions data/de/page_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
{
"start": "main_menu",
"end": "",
"default": {
"name": "default",
"type": "no-type",
"showInput": true,
"data": {
"title": "Startseite",
"action": {
"type": "goToStart"
},
"content": {
"textIndent": 0,
"font": {
"name": "CodeGon Mono",
"file": "fonts/codegon-mono.ttf",
"size": 7
}
}
}
},
"pages": [
{
"name": "main_menu",
"type": "choice",
"showInput": true,
"data": {
"title": "The Oregon Trail",
"choices": [
{
"text": "Befahre die Spur",
"action": {
"type": "changePage",
"newPageName": "occupation"
}
},
{
"text": "Mehr uber die Spur",
"action": {
"type": "changePage",
"newPageName": "about_game"
}
},
{
"text": ["sehe Oregon Top Ten an"],
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Ton ausschalten",
"action": {
"type": "toggleSetting",
"setting": "sound",
"secondAction": {
"type": "changeText",
"texts": ["Ton ausschalten", "Ton anschalten"],
"current": 0
}
}
},
{
"text": "Testseite aufmachen",
"action": {
"type": "changePage",
"newPageName": "test"
}
},
{
"text": "Sprache aendern",
"action": {
"type": "changePage",
"newPageName": "language"
}
}
],
"prompt": "Was ist deine Wahl?",
"img": "img/title.png",
"content": {
"textIndent": 5
}
}
},
{
"name": "occupation",
"type": "choice",
"showInput": true,
"data": {
"title": ["Viele Arten von Menschen haben das gemacht", "Reise nach Oregon."],
"choices": [
{
"text": "Sei ein Banker aus Boston",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Seien Sie ein Zimmermann aus Ohio",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Sei ein Bauer aus Illinois",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": ["Finden Sie die Unterschiede heraus", "zwischen diesen Entscheidungen"],
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Kehren Sie zurück",
"action": {
"type": "changePage",
"newPageName": "main_menu"
}
}
],
"prompt": "Was ist deine Wahl?",
"img": "",
"content": {
"textIndent": 2
}
}
},
{
"name": "about_game",
"type": "info",
"showInput": false,
"data": {
"title": "Der Oregon-Trail",
"prompt": "Drücke die LEERTASTE um fortzufahren",
"text": [
"Versuchen Sie, eine Reise",
"mit einem Planwagen über 2000",
"Meilen von Ebenen, Flüssen und",
"Bergen zu unternehmen. Versuchen!",
"plains, will you slosh your",
"Werden Sie Ihre Ochsen in der Ebene",
"durch schlammige und wassergefüllte Furchen",
"schwappen oder durch sechs Zoll",
"tiefen Staub stapfen?"
],
"action": {
"type": "changePage",
"newPageName": "main_menu"
},
"img": "img/title.png",
"content": {
"textIndent": 2
}
}
},
{
"name": "test"
},
{
"name" : "language",
"type": "choice",
"showInput": true,
"data": {
"title": ["Wählen Sie Ihre Anzeigesprache"],
"choices": [
{
"text": "Englisch",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Deutsch",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Italienisch",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Tschechisch",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Neue Sprache hinzufuegen",
"action": {
"type": "changePage",
"newPageName": "test"
}
},
{
"text": "abbrechen",
"action": {
"type": "changePage",
"newPageName": "main_menu"
}
}
],
"prompt": "Was ist deine Wahl?",
"img": "",
"content": {
"textIndent": 2
}
}
}
]
}
64 changes: 64 additions & 0 deletions data/page_data.json → data/en/page_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
"type": "changePage",
"newPageName": "test"
}
},
{
"text": "Change Language",
"action": {
"type": "changePage",
"newPageName": "language"
}
}
],
"prompt": "What is your choice?",
Expand Down Expand Up @@ -156,6 +163,63 @@
},
{
"name": "test"
},
{
"name" : "language",
"type": "choice",
"showInput": true,
"data": {
"title": ["Choose your display language"],
"choices": [
{
"text": "English",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Deutsch",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Italiano",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Czech",
"action": {
"type": "changePage",
"newPageName": ""
}
},
{
"text": "Add new Language",
"action": {
"type": "changePage",
"newPageName": "test"
}
},
{
"text": "Cancel",
"action": {
"type": "changePage",
"newPageName": "main_menu"
}
}
],
"prompt": "What is your choice?",
"img": "",
"content": {
"textIndent": 2
}
}
}
]
}
Loading