diff --git a/TheGameExtreme/Resx/AppResources.Designer.cs b/TheGameExtreme/Resx/AppResources.Designer.cs
index c0a9a4a..c5619ec 100644
--- a/TheGameExtreme/Resx/AppResources.Designer.cs
+++ b/TheGameExtreme/Resx/AppResources.Designer.cs
@@ -60,6 +60,23 @@ namespace TheGameExtreme.Resx {
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à OrderStacks
+ ///
+ ///A votre disposition, un mode de jeu en local, jouable jusqu'à 5 joueurs.
+ ///
+ ///Un mode multijoueur en cours de développement.
+ ///
+ ///Une présentation des règles du jeu.
+ ///
+ ///Une possibilité de changer le thème de l'application grâce aux images du soleil et lune..
+ ///
+ public static string StrAbout {
+ get {
+ return ResourceManager.GetString("StrAbout", resourceCulture);
+ }
+ }
+
///
/// Recherche une chaîne localisée semblable à Pile ascendante.
///
@@ -141,6 +158,15 @@ namespace TheGameExtreme.Resx {
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à A propos.
+ ///
+ public static string StrInfo {
+ get {
+ return ResourceManager.GetString("StrInfo", resourceCulture);
+ }
+ }
+
///
/// Recherche une chaîne localisée semblable à La partie est terminée.
///
diff --git a/TheGameExtreme/Resx/AppResources.en-US.resx b/TheGameExtreme/Resx/AppResources.en-US.resx
index 9da829a..6f5f93c 100644
--- a/TheGameExtreme/Resx/AppResources.en-US.resx
+++ b/TheGameExtreme/Resx/AppResources.en-US.resx
@@ -117,6 +117,17 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ OrderStacks
+
+At your disposal, a local game mode, playable up to 5 players.
+
+A multiplayer mode in development.
+
+A presentation of the rules of the game.
+
+An opportunity to change the theme of the application through the images of the sun and moon.
+
Ascending stack
@@ -144,6 +155,9 @@
Please enter your username
+
+ About
+
The game is over!
diff --git a/TheGameExtreme/Resx/AppResources.en.resx b/TheGameExtreme/Resx/AppResources.en.resx
index 9da829a..6f5f93c 100644
--- a/TheGameExtreme/Resx/AppResources.en.resx
+++ b/TheGameExtreme/Resx/AppResources.en.resx
@@ -117,6 +117,17 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ OrderStacks
+
+At your disposal, a local game mode, playable up to 5 players.
+
+A multiplayer mode in development.
+
+A presentation of the rules of the game.
+
+An opportunity to change the theme of the application through the images of the sun and moon.
+
Ascending stack
@@ -144,6 +155,9 @@
Please enter your username
+
+ About
+
The game is over!
diff --git a/TheGameExtreme/Resx/AppResources.resx b/TheGameExtreme/Resx/AppResources.resx
index 31a18e4..83fa041 100644
--- a/TheGameExtreme/Resx/AppResources.resx
+++ b/TheGameExtreme/Resx/AppResources.resx
@@ -117,6 +117,17 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ OrderStacks
+
+A votre disposition, un mode de jeu en local, jouable jusqu'à 5 joueurs.
+
+Un mode multijoueur en cours de développement.
+
+Une présentation des règles du jeu.
+
+Une possibilité de changer le thème de l'application grâce aux images du soleil et lune.
+
Pile ascendante
@@ -144,6 +155,9 @@
Entrez votre pseudo
+
+ A propos
+
La partie est terminée
diff --git a/TheGameExtreme/view/HomePage.xaml.cs b/TheGameExtreme/view/HomePage.xaml.cs
index 6e0677a..85195a9 100644
--- a/TheGameExtreme/view/HomePage.xaml.cs
+++ b/TheGameExtreme/view/HomePage.xaml.cs
@@ -22,9 +22,7 @@ namespace TheGameExtreme.view
private async void OpenMultiPlayerMode(object sender, EventArgs args)
{
await DisplayAlert("Mode en cours de développement", null, "Fermer");
- //await Navigation.PushAsync(new MultiPlayerMode());
-
-
+ //await Navigation.PushAsync(new MultiPlayerMode());
}
private async void Rules_Clicked(object sender, EventArgs args)
@@ -90,9 +88,7 @@ namespace TheGameExtreme.view
private async void ImageButton_Clicked(object sender, EventArgs e)
{
- await DisplayAlert("A propos", "OrderStacks\n\n A votre disposition, un mode de jeu en local, jouable jusqu'à 5 joueurs.\n\n Un mode multijoueur en cours de développement.\n\n" +
- "Une présentation des règles du jeu \n\n" +
- "Une possibilité de changer le thème de l'application grâce aux images du soleil et lune.", "Fermer");
+ await DisplayAlert(AppResources.StrInfo,AppResources.StrAbout, AppResources.StrCloseWind );
}
}
}
diff --git a/TheGameExtreme/view/HomePage.xaml.cs.orig b/TheGameExtreme/view/HomePage.xaml.cs.orig
new file mode 100644
index 0000000..1875e68
--- /dev/null
+++ b/TheGameExtreme/view/HomePage.xaml.cs.orig
@@ -0,0 +1,98 @@
+using System;
+using Xamarin.Forms;
+using TheGameExtreme.IO;
+<<<<<<< HEAD
+=======
+using TheGameExtreme.Resx;
+>>>>>>> bluetoothtest
+
+namespace TheGameExtreme.view
+{
+ public partial class HomePage : ContentPage
+ {
+
+ public HomePage()
+ {
+ InitializeComponent();
+ NavigationPage.SetHasNavigationBar(this, false);
+ LoadParameterOptionOnHomepage();
+
+ }
+ private async void OpenGame(object sender, EventArgs args)
+ {
+ await Navigation.PushAsync(new GamePreparationPage());
+ }
+
+ private async void OpenMultiPlayerMode(object sender, EventArgs args)
+ {
+ await DisplayAlert("Mode en cours de développement", null, "Fermer");
+ //await Navigation.PushAsync(new MultiPlayerMode());
+ }
+
+ private async void Rules_Clicked(object sender, EventArgs args)
+ {
+ await Navigation.PushAsync(new RulesGame());
+ }
+
+
+ public void LoadParameterOptionOnHomepage()
+ {
+ bool b = IOOptions.LoadOptionsParameter();
+ if (!b)
+ {
+ Application.Current.Resources["BlackColor"] = Color.Black;
+ Application.Current.Resources["WhiteColor"] = Color.White;
+ imageButton.Source = "SoleilThemes.png";
+ }
+ else
+ {
+ Application.Current.Resources["BlackColor"] = Color.White;
+ Application.Current.Resources["WhiteColor"] = Color.Black;
+ imageButton.Source = "LuneSombreTheme.png";
+ }
+ }
+
+ private void Theme_Clicked(object sender, EventArgs e)
+ {
+ bool b;
+ ButtonGrid.Children.Remove(imageButton);
+
+ if(homepageT.BackgroundColor == Color.Black)
+ {
+ b = true;
+ Application.Current.Resources["BlackColor"] = Color.White;
+ Application.Current.Resources["WhiteColor"] = Color.Black;
+ imageButton = new ImageButton()
+ {
+ BackgroundColor = Color.Transparent,
+ BorderColor = (Color)Application.Current.Resources["SkyBlueColor"]
+ };
+ imageButton.Source = "LuneSombreTheme.png";
+ }
+ else
+ {
+ b = false;
+ Application.Current.Resources["BlackColor"] = Color.Black;
+ Application.Current.Resources["WhiteColor"] = Color.White;
+ imageButton = new ImageButton()
+ {
+ BackgroundColor = Color.Transparent,
+ BorderColor = (Color)Application.Current.Resources["SkyBlueColor"]
+ };
+ imageButton.Source = "SoleilThemes.png";
+ }
+ ButtonGrid.Children.Add(imageButton, 1, 1);
+ imageButton.Clicked += Theme_Clicked;
+ imageButton.HorizontalOptions = LayoutOptions.Center;
+ imageButton.VerticalOptions = LayoutOptions.End;
+ IOOptions.SaveOptionParameter(b);
+
+
+ }
+
+ private async void ImageButton_Clicked(object sender, EventArgs e)
+ {
+ await DisplayAlert(AppResources.StrInfo,AppResources.StrAbout, AppResources.StrCloseWind );
+ }
+ }
+}