-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
19 changed files
with
496 additions
and
45 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,49 @@ | ||
/* | ||
* This file is part of 3DVier | ||
* Copyright (C) 2020 SuperSaiyajinStackZ | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* Additional Terms 7.b and 7.c of GPLv3 apply to this file: | ||
* * Requiring preservation of specified reasonable legal notices or | ||
* author attributions in that material or in the Appropriate Legal | ||
* Notices displayed by works containing it. | ||
* * Prohibiting misrepresentation of the origin of that material, | ||
* or requiring that modified versions of such material be marked in | ||
* reasonable ways as different from the original version. | ||
*/ | ||
|
||
#ifndef _3DVIER_LANGSELECTION_HPP | ||
#define _3DVIER_LANGSELECTION_HPP | ||
|
||
#include "common.hpp" | ||
#include "structs.hpp" | ||
|
||
#include <vector> | ||
|
||
class LangSelection : public Screen | ||
{ | ||
public: | ||
void Draw(void) const override; | ||
void Logic(u32 hDown, u32 hHeld, touchPosition touch) override; | ||
LangSelection(); | ||
private: | ||
int selectedLang = 0; | ||
std::vector<Structs::ButtonPos> langBlocks = { | ||
{37, 32, 20, 20}, | ||
{37, 72, 20, 20} | ||
}; | ||
}; | ||
|
||
#endif |
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,50 @@ | ||
/* | ||
* This file is part of 3DVier | ||
* Copyright (C) 2020 SuperSaiyajinStackZ | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* Additional Terms 7.b and 7.c of GPLv3 apply to this file: | ||
* * Requiring preservation of specified reasonable legal notices or | ||
* author attributions in that material or in the Appropriate Legal | ||
* Notices displayed by works containing it. | ||
* * Prohibiting misrepresentation of the origin of that material, | ||
* or requiring that modified versions of such material be marked in | ||
* reasonable ways as different from the original version. | ||
*/ | ||
|
||
#ifndef _3DVIER_UISETTINGS_HPP | ||
#define _3DVIER_UISETTINGS_HPP | ||
|
||
#include "common.hpp" | ||
#include "structs.hpp" | ||
|
||
#include <vector> | ||
|
||
class UISettings : public Screen | ||
{ | ||
public: | ||
void Draw(void) const override; | ||
void Logic(u32 hDown, u32 hHeld, touchPosition touch) override; | ||
private: | ||
int Selection = 0; | ||
|
||
std::vector<Structs::ButtonPos> mainButtons = { | ||
{90, 40, 140, 40}, // Colors. | ||
{90, 100, 140, 40}, // Language. | ||
{90, 160, 140, 40}, // ?. | ||
}; | ||
}; | ||
|
||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* This file is part of 3DVier | ||
* Copyright (C) 2020 SuperSaiyajinStackZ | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* Additional Terms 7.b and 7.c of GPLv3 apply to this file: | ||
* * Requiring preservation of specified reasonable legal notices or | ||
* author attributions in that material or in the Appropriate Legal | ||
* Notices displayed by works containing it. | ||
* * Prohibiting misrepresentation of the origin of that material, | ||
* or requiring that modified versions of such material be marked in | ||
* reasonable ways as different from the original version. | ||
*/ | ||
|
||
#ifndef _3DVIER_LANG_HPP | ||
#define _3DVIER_LANG_HPP | ||
|
||
#include "json.hpp" | ||
|
||
#include <string> | ||
|
||
namespace Lang { | ||
std::string get(const std::string &key); | ||
void load(); | ||
} | ||
|
||
#endif |
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,40 @@ | ||
{ | ||
"A_CONTINUE": "Drücke \uE000 zum fortfahren.", | ||
"BAR_COLOR": "Balkenfarbe", | ||
"BG_COLOR": "Hintergrundfarbe", | ||
"BUTTON_COLOR": "Schaltflächenfarbe", | ||
"CHAR_SELECT": "Navigiere mit dem Steuerkreuz. Drücke \uE000 zum auswählen.", | ||
"COLOR_SETTINGS": "Farbeinstellungen", | ||
"CURRENT_VERSION": "Aktuelle Version: ", | ||
"CREDITS": "Credits", | ||
"DEVELOPED_BY": "Entwickelt von: SuperSaiyajinStackZ.", | ||
"ENTER_BLUE_RGB": "Gebe die Blaue RGB an.", | ||
"ENTER_GREEN_RGB": "Gebe die Grüne RGB an.", | ||
"ENTER_RED_RGB": "Gebe die Rote RGB an.", | ||
"ENTER_WIN_AMOUNT": "Gebe die Anzahl an Siegen ein.", | ||
"GAME_ALL_USED": "Alle Slots sind benutzt... Starte das Spiel neu...", | ||
"GAME_EXIT": "Möchtest du dieses Spiel verlassen?", | ||
"GAME_INSTR": "Drücke \uE000 um eine Position auszuwählen.\nBenutze das Steuerkreuz um zu navigieren.\nDrücke START um das Spiel zu verlassen.", | ||
"GAME_RESULT": "%s hat das Spiel gewonnen!\nErgebnis: %s: %i | %s: %i.", | ||
"GAME_WIN_ROUND": "%s hat diese Runde gewonnen!\nBenötigte Siege zum gewinnen: %i.", | ||
"LANGUAGE": "Sprache", | ||
"MAINMENU": "Hauptmenü", | ||
"NEW_GAME": "Neues Spiel", | ||
"NO": "Nein", | ||
"NOT_IMPLEMENTED_YET": "Das ist noch nicht implementiert!", | ||
"OK": "OK", | ||
"P1CHIP_COLOR": "Spieler 1 Chipfarbe", | ||
"P2CHIP_COLOR": "Spieler 2 Chipfarbe", | ||
"PLAYER1_CHAR": "Spieler 1: Wähle deinen Avatar aus!", | ||
"PLAYER2_CHAR": "Spieler 2: Wähle deinen Avatar aus!", | ||
"PLAYER1_NAME": "Spieler 1: Gebe deinen Namen ein!", | ||
"PLAYER2_NAME": "Spieler 2: Gebe deinen Namen ein!", | ||
"RASTER_COLOR": "Gitterfarbe", | ||
"SELECT_LANG": "Wähle die aktuelle Sprache.", | ||
"SELECTOR_COLOR": "Selektorfarbe", | ||
"TEXT_COLOR": "Textfarbe", | ||
"UI_SETTINGS": "UI Einstellungen", | ||
"WINS": "Siege:", | ||
"WINS_TO_WIN": "Benötigte Siege zum Gewinn:", | ||
"YES": "Ja" | ||
} |
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,40 @@ | ||
{ | ||
"A_CONTINUE": "Press \uE000 to continue.", | ||
"BAR_COLOR": "Bar Color", | ||
"BG_COLOR": "Background Color", | ||
"BUTTON_COLOR": "Button Color", | ||
"CHAR_SELECT": "Navigate with the D-Pad. Press \uE000 to select.", | ||
"COLOR_SETTINGS": "Color Settings", | ||
"CURRENT_VERSION": "Current Version: ", | ||
"CREDITS": "Credits", | ||
"DEVELOPED_BY": "Developed by: SuperSaiyajinStackZ.", | ||
"ENTER_BLUE_RGB": "Enter the Blue RGB.", | ||
"ENTER_GREEN_RGB": "Enter the Green RGB.", | ||
"ENTER_RED_RGB": "Enter the Red RGB.", | ||
"ENTER_WIN_AMOUNT": "Enter the amount of wins.", | ||
"GAME_ALL_USED": "All Slots are used. Restarting the game...", | ||
"GAME_EXIT": "Do you like to exit this game?", | ||
"GAME_INSTR": "Press \uE000 to select a position.\nUse the D-Pad to navigate.\nPress START to exit.", | ||
"GAME_RESULT": "%s wins this game!\nResult: %s: %i | %s: %i.", | ||
"GAME_WIN_ROUND": "%s wins this round!\nNeeded wins to win: %i.", | ||
"LANGUAGE": "Language", | ||
"MAINMENU": "MainMenu", | ||
"NEW_GAME": "New Game", | ||
"NO": "No", | ||
"NOT_IMPLEMENTED_YET": "This is not implemented yet!", | ||
"OK": "OK", | ||
"P1CHIP_COLOR": "Player 1 Chip Color", | ||
"P2CHIP_COLOR": "Player 2 Chip Color", | ||
"PLAYER1_CHAR": "Player 1: Select your avatar!", | ||
"PLAYER2_CHAR": "Player 2: Select your avatar aus!", | ||
"PLAYER1_NAME": "Player 1: Enter your name!", | ||
"PLAYER2_NAME": "Player 2: Enter your name!", | ||
"RASTER_COLOR": "Raster Color", | ||
"SELECT_LANG": "Choose the current language.", | ||
"SELECTOR_COLOR": "Selector Color", | ||
"TEXT_COLOR": "Text Color", | ||
"UI_SETTINGS": "UI Settings", | ||
"WINS": "Wins:", | ||
"WINS_TO_WIN": "Needed wins to win:", | ||
"YES": "Yes" | ||
} |
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
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
Oops, something went wrong.