Correction erreur

master
cldupland 5 years ago
parent 5c3eb27e25
commit b83c61656c

@ -1,11 +1,11 @@
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

@ -1,210 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TheGameExtreme {
using System;
/// <summary>
/// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
/// </summary>
// 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()]
internal class AppRessources_br {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal AppRessources_br() {
}
/// <summary>
/// Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TheGameExtreme.AppRessources-br", typeof(AppRessources_br).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Remplace la propriété CurrentUICulture du thread actuel pour toutes
/// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à rising stack.
/// </summary>
internal static string StrAcendingStack {
get {
return ResourceManager.GetString("StrAcendingStack", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à the chosen pile does not exist.
/// </summary>
internal static string StrCantGetStack {
get {
return ResourceManager.GetString("StrCantGetStack", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à You have not played enough cards!.
/// </summary>
internal static string StrCardPlayedLessThanTwo {
get {
return ResourceManager.GetString("StrCardPlayedLessThanTwo", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à Please select a card to place on a stack.
/// </summary>
internal static string StrChooseCardToPlay {
get {
return ResourceManager.GetString("StrChooseCardToPlay", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à Select the stack on which you want to put the card.
/// </summary>
internal static string StrChooseStack {
get {
return ResourceManager.GetString("StrChooseStack", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à Down stack.
/// </summary>
internal static string StrDownStack {
get {
return ResourceManager.GetString("StrDownStack", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à End of turn.
/// </summary>
internal static string StrEndTurn {
get {
return ResourceManager.GetString("StrEndTurn", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à .
/// </summary>
internal static string String1 {
get {
return ResourceManager.GetString("String1", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à The game is over! Sorry, you lost ... Try again!.
/// </summary>
internal static string StrLose {
get {
return ResourceManager.GetString("StrLose", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à The game is over! Sorry, you lost ... You had to play three cards because of the effect \ &quot;Three cards played \&quot; off your game does not play as much! Try again!.
/// </summary>
internal static string StrLose3CardEffect {
get {
return ResourceManager.GetString("StrLose3CardEffect", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à The player has no more cards in his hand.
/// </summary>
internal static string StrNoMoreCardOnHand {
get {
return ResourceManager.GetString("StrNoMoreCardOnHand", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à -The goal is to beat the game! Alone or with others!
///
///-98 cards numbered from 2 to 99.
///
///-4 batteries are at your disposal, two ascending and two descending.
///
///-The objective is to be able to put all the cards of the picks on the different piles at your disposal.
///
///-If you get to empty all the deck and put all the cards on the piles, you win, otherwise you lose.
///
///-Every player must play at least two cards per turn.
///
///-On an ascending stack, it is possible to roll back 10 (eg 73 is played -&gt; possibil [le reste de la chaîne a été tronqué]&quot;;.
/// </summary>
internal static string StrRules {
get {
return ResourceManager.GetString("StrRules", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à Sorry, you did not cover the skull ... Try again;).
/// </summary>
internal static string StrSkullEffect {
get {
return ResourceManager.GetString("StrSkullEffect", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à The game is over! Well done you won!.
/// </summary>
internal static string StrWin {
get {
return ResourceManager.GetString("StrWin", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à The card does not fit in the selected stack!.
/// </summary>
internal static string StrWrongStack {
get {
return ResourceManager.GetString("StrWrongStack", resourceCulture);
}
}
}
}

@ -42,7 +42,6 @@
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="AppRessource.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>AppRessource.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="AppRessources-br.resx">

@ -155,25 +155,6 @@
<data name="StrNoMoreCardOnHand" xml:space="preserve">
<value>The player has no more cards in his hand</value>
</data>
<data name="StrRules" xml:space="preserve">
<value>-The goal is to beat the game! Alone or with others!
-98 cards numbered from 2 to 99.
-4 batteries are at your disposal, two ascending and two descending.
-The objective is to be able to put all the cards of the picks on the different piles at your disposal.
-If you get to empty all the deck and put all the cards on the piles, you win, otherwise you lose.
-Every player must play at least two cards per turn.
-On an ascending stack, it is possible to roll back 10 (eg 73 is played -&gt; possibility to play above 73 or 63).
-On a falling stack, it is possible to roll back 10 (eg 73 is played -&gt; possibility to play below 73 or 83).
-The cohesion and strategy will be two important friends to overcome The Game.</value>
</data>
<data name="StrSkullEffect" xml:space="preserve">
<value>Sorry, you did not cover the skull ... Try again;)</value>
</data>

@ -73,18 +73,21 @@
<StackLayout
x:Name="NameList">
<Frame BackgroundColor="{DynamicResource SkyBlueColor}"
<!--<Frame BackgroundColor="{DynamicResource SkyBlueColor}"
CornerRadius="10"
HeightRequest="45"
VerticalOptions="Center"
HorizontalOptions="Center"
WidthRequest="120">
<Entry
BackgroundColor="{DynamicResource SkyBlueColor}"
Placeholder="Pseudo"
HorizontalTextAlignment="Start"/>
</Frame>-->
<Entry
BackgroundColor="{DynamicResource SkyBlueColor}"
Placeholder="Pseudo"
HorizontalTextAlignment="Start"/>
</Frame>
</StackLayout>
</ScrollView>

@ -1,13 +1,12 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Xamarin.Forms;
namespace TheGameExtreme.view
{
public partial class GamePreparationPage : ContentPage
{
private string instructionText;
public string InstructionText
{
@ -65,22 +64,22 @@ namespace TheGameExtreme.view
Placeholder = "Pseudo",
BackgroundColor = (Color)Application.Current.Resources["SkyBlueColor"]
};
Frame myFrame = new Frame
{
BackgroundColor = (Color)Application.Current.Resources["SkyBlueColor"],
HeightRequest = 45,
VerticalOptions = LayoutOptions.Center,
HorizontalOptions = LayoutOptions.Center,
WidthRequest = 120,
CornerRadius = 10,
Content = e
};
//Frame myFrame = new Frame
//{
// BackgroundColor = (Color)Application.Current.Resources["SkyBlueColor"],
// HeightRequest = 45,
// VerticalOptions = LayoutOptions.Center,
// HorizontalOptions = LayoutOptions.Center,
// WidthRequest = 120,
// CornerRadius = 10,
// Content = e
//};
NameList.Children.Add(myFrame);
NameList.Children.Add(e);
}
else
{
NameList.Children.RemoveAt(NameList.Children.Count-1);
NameList.Children.RemoveAt(NameList.Children.Count - 1);
}
}
}

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<ContentPage BackgroundColor="{DynamicResource BlackColor}"
<ContentPage
BackgroundColor="{DynamicResource BlackColor}"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:skia="clr-namespace:SkiaSharp.Views.Forms;assembly=SkiaSharp.Views.Forms"
xmlns:tt="clr-namespace:TouchTracking.Forms;assembly=TouchTracking.Forms"
xmlns:local="clr-namespace:TheGameExtreme.view"
mc:Ignorable="d"
x:Class="TheGameExtreme.view.MainPage">

@ -14,6 +14,7 @@ using TheGameExtreme.model.card;
namespace TheGameExtreme.view
{
// Learn more about making custom code visible in the Xamarin.Forms previewer
// by visiting https://aka.ms/xamarinforms-previewer
[DesignTimeVisible(false)]
@ -28,7 +29,6 @@ namespace TheGameExtreme.view
private SKCanvas canvas;
public MainPage(List<string> playersNames)
{
this.playersNames = playersNames;

Loading…
Cancel
Save