diff --git a/TheGameExtreme.Android/MainActivity.cs b/TheGameExtreme.Android/MainActivity.cs
index 1fc2dfb..820c3d1 100644
--- a/TheGameExtreme.Android/MainActivity.cs
+++ b/TheGameExtreme.Android/MainActivity.cs
@@ -19,19 +19,21 @@ namespace TheGameExtreme.Droid
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
- int uiOptions = (int)Window.DecorView.SystemUiVisibility;
+ /*int uiOptions = (int)Window.DecorView.SystemUiVisibility;
uiOptions |= (int)SystemUiFlags.LowProfile;
uiOptions |= (int)SystemUiFlags.Fullscreen;
uiOptions |= (int)SystemUiFlags.HideNavigation;
- uiOptions |= (int)SystemUiFlags.ImmersiveSticky;
- Window.DecorView.SystemUiVisibility = (StatusBarVisibility)uiOptions;
-
+ uiOptions |= (int)SystemUiFlags.ImmersiveSticky;
+ Window.DecorView.SystemUiVisibility = (StatusBarVisibility)uiOptions;*/
+
base.OnCreate(savedInstanceState);
Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
Xamarin.Essentials.Platform.Init(this, savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
LoadApplication(new App());
Window.SetStatusBarColor(Android.Graphics.Color.Argb(255, 0, 0, 0));
+ this.Window.AddFlags(WindowManagerFlags.Fullscreen | WindowManagerFlags.TurnScreenOn);
+
}
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
{
diff --git a/TheGameExtreme/Resx/AppResources.Designer.cs b/TheGameExtreme/Resx/AppResources.Designer.cs
index c0d8951..c0a9a4a 100644
--- a/TheGameExtreme/Resx/AppResources.Designer.cs
+++ b/TheGameExtreme/Resx/AppResources.Designer.cs
@@ -1,44 +1,57 @@
//------------------------------------------------------------------------------
//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
+// Ce code a été généré par un outil.
+// Version du runtime :4.0.30319.42000
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
+// le code est régénéré.
//
//------------------------------------------------------------------------------
namespace TheGameExtreme.Resx {
using System;
- using System.Reflection;
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ ///
+ /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
+ ///
+ // Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder
+ // à l'aide d'un outil, tel que ResGen ou Visual Studio.
+ // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
+ // avec l'option /str ou régénérez votre projet VS.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class AppResources {
- private static System.Resources.ResourceManager resourceMan;
+ private static global::System.Resources.ResourceManager resourceMan;
- private static System.Globalization.CultureInfo resourceCulture;
+ private static global::System.Globalization.CultureInfo resourceCulture;
- [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal AppResources() {
}
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- public static System.Resources.ResourceManager ResourceManager {
+ ///
+ /// Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Resources.ResourceManager ResourceManager {
get {
- if (object.Equals(null, resourceMan)) {
- System.Resources.ResourceManager temp = new System.Resources.ResourceManager("TheGameExtreme.Resx.AppResources", typeof(AppResources).Assembly);
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TheGameExtreme.Resx.AppResources", typeof(AppResources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- public static System.Globalization.CultureInfo Culture {
+ ///
+ /// Remplace la propriété CurrentUICulture du thread actuel pour toutes
+ /// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
@@ -47,130 +60,196 @@ namespace TheGameExtreme.Resx {
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Pile ascendante.
+ ///
public static string StrAcendingStack {
get {
return ResourceManager.GetString("StrAcendingStack", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Jouer.
+ ///
public static string StrBtnPlay {
get {
return ResourceManager.GetString("StrBtnPlay", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à La pile n'est pas disponnible.
+ ///
public static string StrCantGetStack {
get {
return ResourceManager.GetString("StrCantGetStack", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à La carte n'existe pas .
+ ///
public static string StrCardDoesntExist {
get {
return ResourceManager.GetString("StrCardDoesntExist", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Vous devez jouer au minimum deux cartes par tour.
+ ///
public static string StrCardPlayedLessThanTwo {
get {
return ResourceManager.GetString("StrCardPlayedLessThanTwo", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Fermer.
+ ///
public static string StrCloseWind {
get {
return ResourceManager.GetString("StrCloseWind", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Pile descendante.
+ ///
public static string StrDownStack {
get {
return ResourceManager.GetString("StrDownStack", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Fin de tour.
+ ///
public static string StrEndTurn {
get {
return ResourceManager.GetString("StrEndTurn", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Entrez votre pseudo.
+ ///
public static string StrEnterPseudo {
get {
return ResourceManager.GetString("StrEnterPseudo", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à La partie est terminée.
+ ///
public static string String3 {
get {
return ResourceManager.GetString("String3", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Bravo vous avez gagné!.
+ ///
public static string String4 {
get {
return ResourceManager.GetString("String4", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Jeu en local.
+ ///
public static string StrLocalGame {
get {
return ResourceManager.GetString("StrLocalGame", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à .
+ ///
public static string StrLose {
get {
return ResourceManager.GetString("StrLose", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Multijoueur.
+ ///
public static string StrMultiplayer {
get {
return ResourceManager.GetString("StrMultiplayer", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Nombre de cartes :.
+ ///
public static string StrNbCards {
get {
return ResourceManager.GetString("StrNbCards", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Nombre de joueurs :.
+ ///
public static string StrNbPlayers {
get {
return ResourceManager.GetString("StrNbPlayers", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Nombre de piles en jeu :.
+ ///
public static string StrNbStacksInGame {
get {
return ResourceManager.GetString("StrNbStacksInGame", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Veuillez choisir un nombre de joueur ainsi que leur(s) nom(s).
+ ///
public static string StrPlayerSelections {
get {
return ResourceManager.GetString("StrPlayerSelections", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Entrez votre pseudo :.
+ ///
public static string StrPseudoGM {
get {
return ResourceManager.GetString("StrPseudoGM", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Rejouer.
+ ///
+ public static string StrRetry {
+ get {
+ return ResourceManager.GetString("StrRetry", resourceCulture);
+ }
+ }
+
///
/// Recherche une chaîne localisée semblable à - L'objectif est de battre la machine seul et/ou en coopération.
///
- /// - Afin d'atteindre l'objectif, les joueurs disposent de 4 piles (par defaut) : deux ascendantes(Verte) et deux descendantes(Rouge).
+ /// - Afin d'atteindre l'objectif, les joueurs disposent de 4 piles (par défaut): deux piles ascendantes vertes et deux piles descendantes rouges.
///
- /// - Sur les piles ascendantes, le joueur doit bien entendu poser des cartes plus grandes et inversement sur les piles descendantes.
+ /// - Sur les piles ascendantes, le joueur doit poser des cartes plus grandes et inversement sur les piles descendantes.
///
/// - Le but est de poser les 98 cartes du jeu sur les différentes piles à votre disposition.
- /// (Pour ce faire confer les règles de tour de jeu ci-dessous)
- /// [le reste de la chaîne a été tronqué]";.
+ ///
+ /// - Pour jouer, il suffit de faire glisser une carte sur la pil [le reste de la chaîne a été tronqué]";.
///
public static string StrRules {
get {
@@ -178,78 +257,117 @@ namespace TheGameExtreme.Resx {
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à OrderStacks.
+ ///
public static string StrTitle {
get {
return ResourceManager.GetString("StrTitle", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Règles.
+ ///
public static string StrTitleRules {
get {
return ResourceManager.GetString("StrTitleRules", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Jouer avec des valeurs :.
+ ///
public static string StrValueType {
get {
return ResourceManager.GetString("StrValueType", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Félicitation vous avez gagné.
+ ///
public static string StrWin {
get {
return ResourceManager.GetString("StrWin", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à La carte choisie ne convient pas.
+ ///
public static string StrWrongStack {
get {
return ResourceManager.GetString("StrWrongStack", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Fractionnées.
+ ///
public static string TypeValuefractionated {
get {
return ResourceManager.GetString("TypeValuefractionated", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Décimales (2 chiffres).
+ ///
public static string TypeValuehundredth {
get {
return ResourceManager.GetString("TypeValuehundredth", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Relatives.
+ ///
public static string TypeValueRelative {
get {
return ResourceManager.GetString("TypeValueRelative", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Décimales (1 chiffre).
+ ///
public static string TypeValueTens {
get {
return ResourceManager.GetString("TypeValueTens", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Décimales (3 chiffres).
+ ///
public static string TypeValuethousandth {
get {
return ResourceManager.GetString("TypeValuethousandth", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Entière.
+ ///
public static string TypeValueWhole {
get {
return ResourceManager.GetString("TypeValueWhole", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Thème clair :.
+ ///
public static string WhiteTheme {
get {
return ResourceManager.GetString("WhiteTheme", resourceCulture);
}
}
+ ///
+ /// Recherche une chaîne localisée semblable à Erreur pseudo :.
+ ///
public static string WrongPseudo {
get {
return ResourceManager.GetString("WrongPseudo", resourceCulture);
diff --git a/TheGameExtreme/Resx/AppResources.en-US.resx b/TheGameExtreme/Resx/AppResources.en-US.resx
index 1f4d592..9da829a 100644
--- a/TheGameExtreme/Resx/AppResources.en-US.resx
+++ b/TheGameExtreme/Resx/AppResources.en-US.resx
@@ -174,6 +174,9 @@
Enter pseudo :
+
+ Retry
+
- Objective is to beat the machine alone and / or in cooperation.
diff --git a/TheGameExtreme/Resx/AppResources.en.resx b/TheGameExtreme/Resx/AppResources.en.resx
new file mode 100644
index 0000000..9da829a
--- /dev/null
+++ b/TheGameExtreme/Resx/AppResources.en.resx
@@ -0,0 +1,251 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Ascending stack
+
+
+ Play
+
+
+ Stack doesn't exist
+
+
+ Card doesn't exist
+
+
+ You must play at least two cards before finishing your turn
+
+
+ Close
+
+
+ Descending stack
+
+
+ End turn
+
+
+ Please enter your username
+
+
+ The game is over!
+
+
+ Congratulation, you won
+
+
+ Local game
+
+
+
+
+
+ Multiplayer
+
+
+ Number of cards :
+
+
+ Numbers of players :
+
+
+ Number of stacks :
+
+
+ Please choose a number of players and their name(s)
+
+
+ Enter pseudo :
+
+
+ Retry
+
+
+ - Objective is to beat the machine alone and / or in cooperation.
+
+So that the user is 4 players (default): two ascending (Green) and two descendants (Red).
+
+- Ascending piles.
+
+- The goal is to put the 98 cards of the game on different piles at your disposal.
+(To do this, the rules of the game turn below)
+
+- To play, just slide a card on the pile that you have decided.
+
+This card must be well understood.
+
+There are two special cases to the rule above. Indeed, it is possible to put a smaller card on an ascending stack provided that it is a dozen lower. In the same way, if the card is bigger than a dozen, it is possible to put it on a falling battery.
+
+- Ex: On a falling stack, we have 68 => We can then ask 78
+On an ascending stack, we have again 68 => We can ask 58 or any numbers larger than 68.
+
+- Each player must play at least two cards per turn.
+There is therefore no maximum limit to the card to be played per round. However, it is advisable in most cases.
+
+- One Time Tour, You are How to Buy "End of Tour" in order to pass to the next player.
+
+- The end of the game occurs when all cards are played or when the player whose turn it is can not play.
+
+- To the Preparing Party, Turning Display, Screen View Player Number of Player and Pseudo, The Type of Game.
+
+- The type of game allows to define the cards with you will play: relative, decimal ...
+
+The number of batteries corresponds to the initial number of batteries. Half of the piles are still ascending and the other half are still descending. Moreover, the more the number of piles is important, the easier the game is. "
+
+
+ OrderStacks
+
+
+ Rules
+
+
+ Playing with values :
+
+
+ Congratulations, you won
+
+
+ The card does not fit in the cut pile!
+
+
+ fractionated
+
+
+ hundredth
+
+
+ Relative
+
+
+ tenth
+
+
+ thousandth
+
+
+ Whole
+
+
+ White theme :
+
+
+ Pseudo error :
+
+
\ No newline at end of file
diff --git a/TheGameExtreme/Resx/AppResources.resx b/TheGameExtreme/Resx/AppResources.resx
index d6b913b..31a18e4 100644
--- a/TheGameExtreme/Resx/AppResources.resx
+++ b/TheGameExtreme/Resx/AppResources.resx
@@ -174,6 +174,9 @@
Entrez votre pseudo :
+
+ Rejouer
+
- L'objectif est de battre la machine seul et/ou en coopération.
diff --git a/TheGameExtreme/TheGameExtreme.csproj b/TheGameExtreme/TheGameExtreme.csproj
index 640f24e..feb8d05 100644
--- a/TheGameExtreme/TheGameExtreme.csproj
+++ b/TheGameExtreme/TheGameExtreme.csproj
@@ -55,6 +55,11 @@
+
+
+ ..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v9.0\Mono.Android.dll
+
+
diff --git a/TheGameExtreme/view/HomePage.xaml.cs b/TheGameExtreme/view/HomePage.xaml.cs
index 02cc21b..25861ec 100644
--- a/TheGameExtreme/view/HomePage.xaml.cs
+++ b/TheGameExtreme/view/HomePage.xaml.cs
@@ -1,6 +1,7 @@
using System;
using Xamarin.Forms;
using TheGameExtreme.IO;
+using Android.Views;
namespace TheGameExtreme.view
{
@@ -23,6 +24,8 @@ namespace TheGameExtreme.view
{
await DisplayAlert("Mode en cours de développement", null, "Fermer");
//await Navigation.PushAsync(new MultiPlayerMode());
+
+
}
private async void Rules_Clicked(object sender, EventArgs args)
diff --git a/TheGameExtreme/view/MainPage.xaml b/TheGameExtreme/view/MainPage.xaml
index 8b905a6..95bbe6a 100644
--- a/TheGameExtreme/view/MainPage.xaml
+++ b/TheGameExtreme/view/MainPage.xaml
@@ -67,6 +67,7 @@
VerticalOptions="Center"
BackgroundColor="{DynamicResource Gold}"
HeightRequest="35"
+ CornerRadius="10"
Clicked="EndTurn"/>
diff --git a/TheGameExtreme/view/MainPage.xaml.cs b/TheGameExtreme/view/MainPage.xaml.cs
index 51b35b6..87eba31 100644
--- a/TheGameExtreme/view/MainPage.xaml.cs
+++ b/TheGameExtreme/view/MainPage.xaml.cs
@@ -306,7 +306,8 @@ namespace TheGameExtreme.view
{
gameOption.Children.Clear();
Button retryButton = new Button();
- retryButton.Text = "Retry";
+ retryButton.Text = AppResources.StrRetry;
+ retryButton.CornerRadius = 10;
retryButton.Clicked += Retry;
retryButton.BackgroundColor = (Color)Application.Current.Resources["Gold"];
gameOption.Children.Add(retryButton);