Compare commits
2 Commits
8fa7df8845
...
c9fea5f30d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9fea5f30d | ||
|
|
2729753e21 |
@@ -17,7 +17,7 @@ using namespace std;
|
||||
extern const int LARGTIC;
|
||||
string iconJ1 = "X";
|
||||
string iconJ2 = "O";
|
||||
string style = "themes/themeSea.txt";
|
||||
string style = "themes/themeDefaut.txt";
|
||||
int codeConsole = 0;
|
||||
|
||||
fstream monFlux;
|
||||
@@ -370,9 +370,10 @@ void changerLeTheme(bool& theme) {
|
||||
system("cls");
|
||||
do {
|
||||
cout << endl << "Changer le theme du jeu Tic Tac Toe" << endl
|
||||
<< "Options des styles: " << "\nA) Ocean"
|
||||
<< "Options des styles: " << "\n-------------------------------------"
|
||||
<< "\nA) Ocean"
|
||||
<< "\nB) Fantaisie" << "\nC) Espace"
|
||||
<< "\nD) Animaux" << "\nQ) Revenir en arriere"
|
||||
<< "\nD) Animaux" << "\nE) Defaut" << "\nQ) Revenir en arriere"
|
||||
<< "\nChoisir une option: ";
|
||||
choix = toupper(_getche());
|
||||
cout << endl;
|
||||
@@ -384,21 +385,87 @@ void changerLeTheme(bool& theme) {
|
||||
case 'A':
|
||||
style = "themes/themeSea.txt";
|
||||
afficherImageTableau(grid, style);
|
||||
|
||||
cout << "\n\nVoulez vous utiliser ce theme? ";
|
||||
choix = toupper(_getche());
|
||||
|
||||
if (choix == 'O') {
|
||||
style = "themes/themeSea.txt";
|
||||
}
|
||||
|
||||
else {
|
||||
style = "themes/themeDefaut.txt";
|
||||
cout << "Le theme par defaut sera choisi.";
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'B':
|
||||
style = "themes/themeFantasy.txt";
|
||||
afficherImageTableau(grid, style);
|
||||
|
||||
cout << "\n\nVoulez vous utiliser ce theme? ";
|
||||
choix = toupper(_getche());
|
||||
|
||||
if (choix == 'O') {
|
||||
style = "themes/themeFantasy.txt";
|
||||
}
|
||||
|
||||
else {
|
||||
style = "themes/themeDefaut.txt";
|
||||
cout << "Le theme par defaut sera choisi.";
|
||||
}
|
||||
break;
|
||||
|
||||
case 'C':
|
||||
style = "themes/themeEspace.txt";
|
||||
afficherImageTableau(grid, style);
|
||||
|
||||
cout << "\n\nVoulez vous utiliser ce theme? ";
|
||||
choix = toupper(_getche());
|
||||
|
||||
if (choix == 'O') {
|
||||
style = "themes/themeEspace.txt";
|
||||
}
|
||||
|
||||
else {
|
||||
style = "themes/themeDefaut.txt";
|
||||
cout << "Le theme par defaut sera choisi.";
|
||||
}
|
||||
break;
|
||||
|
||||
case 'D':
|
||||
style = "themes/themeAnimaux.txt";
|
||||
afficherImageTableau(grid, style);
|
||||
|
||||
cout << "\n\nVoulez vous utiliser ce theme? ";
|
||||
choix = toupper(_getche());
|
||||
|
||||
if (choix == 'O') {
|
||||
style = "themes/themeAnimaux.txt";
|
||||
}
|
||||
|
||||
else {
|
||||
style = "themes/themeDefaut.txt";
|
||||
cout << "Le theme par defaut sera choisi.";
|
||||
}
|
||||
break;
|
||||
|
||||
case 'E':
|
||||
style = "themes/themeDefaut.txt";
|
||||
afficherImageTableau(grid, style);
|
||||
|
||||
cout << "\n\nVoulez vous utiliser ce theme? ";
|
||||
choix = toupper(_getche());
|
||||
|
||||
if (choix == 'O') {
|
||||
style = "themes/themeDefaut.txt";
|
||||
}
|
||||
|
||||
else {
|
||||
style = "themes/themeDefaut.txt";
|
||||
cout << "Le theme par defaut sera quand meme choisi.";
|
||||
}
|
||||
break;
|
||||
|
||||
case 'Q':
|
||||
|
||||
Reference in New Issue
Block a user