From a2aaa888da6fc4a1fc4e945a71c7dbc93f013de3 Mon Sep 17 00:00:00 2001 From: Guillaume REY Date: Wed, 26 Apr 2023 16:47:45 +0200 Subject: [PATCH] =?UTF-8?q?cr=C3=A9ations=20de=20personnages=20+=20alignem?= =?UTF-8?q?ent=20horizontal=20lorsqu'un=20nouveau=20personnage=20est=20cr?= =?UTF-8?q?=C3=A9=C3=A9=20+=20scroll=20view=20des=20personnages=20(tout=20?= =?UTF-8?q?en=20cs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Model/Personnage.cs | 6 +- Sources/Model/Stub/StubPersonnage.cs | 6 +- Sources/Ohara/Ohara.csproj | 10 +- Sources/Ohara/PagePersonnage.xaml | 160 ++++++++++++++------------- 4 files changed, 97 insertions(+), 85 deletions(-) diff --git a/Sources/Model/Personnage.cs b/Sources/Model/Personnage.cs index 7358e33..adbdeb8 100644 --- a/Sources/Model/Personnage.cs +++ b/Sources/Model/Personnage.cs @@ -3,6 +3,7 @@ public class Personnage { public string Nom { get; set; } + public double Prime { get; set; } public string Epithete { get; set; } public int Age { get; set; } public double Taille { get; set; } @@ -15,9 +16,10 @@ - public Personnage(string nom, string epithete, int age, double taille, string origine, string biographie, string citation, string image) + public Personnage(string nom, double prime, string epithete, int age, double taille, string origine, string biographie, string citation, string image) { Nom = nom; + Prime = prime; Epithete = epithete; Age = age; Taille = taille; @@ -27,7 +29,7 @@ Image = image; } - public Personnage(string nom, string epithete, int age, double taille, string origine, string biographie, string citation,string image ,Equipage equipage,List fruit) : this(nom,epithete,age,taille,origine,biographie,citation,image) + public Personnage(string nom, double prime, string epithete, int age, double taille, string origine, string biographie, string citation,string image ,Equipage equipage,List fruit) : this(nom,prime,epithete,age,taille,origine,biographie,citation,image) { Equipage = equipage; Fruit = fruit; diff --git a/Sources/Model/Stub/StubPersonnage.cs b/Sources/Model/Stub/StubPersonnage.cs index 5f1b1c5..8a9da65 100644 --- a/Sources/Model/Stub/StubPersonnage.cs +++ b/Sources/Model/Stub/StubPersonnage.cs @@ -12,8 +12,10 @@ namespace Model.Stub { List perso = new List() { - new Personnage("Luffy", "Luffy au Chapeau de Paille", 19,1.74, "East Blue", "Feu Clé Noir", "Jean Neymar", "luffy.png"), - + new Personnage("Luffy", 3000000000,"Luffy au Chapeau de Paille", 19, 1.74, "East Blue", "Monkey D. Luffy est...", "Le Roi des Pirates, ce sera moi !", "luffy.png"), + new Personnage("Nami", 366000000, "Le Chatte Voleuse", 20, 1.70, "East Blue", "Nami est...", "Je n'aime que deux choses, l'argent et les mandarines !!", "nami.png"), + new Personnage("Usopp", 500000000,"Dieu Usopp", 19, 1.76, "East Blue", "Usopp est...", "Je suis le grand capitaine Usopp ! J'ai 8 000 hommes sous mon commandement ! C'est moi qui fait la loi sur cette île ! Je vous préviens, quittez ce village pendant qu'il est encore temps sinon vous aurez à faire à moi et à mes hommes!", "usopp.png"), + new Personnage("Zoro", 1111000000,"Le Chasseur de Pirates", 21, 1.81, "East Blue", "Zoro est...", "Un coup dans le dos est le déshonneur pour un sabreur !", "zoro.png"), }; return perso; } diff --git a/Sources/Ohara/Ohara.csproj b/Sources/Ohara/Ohara.csproj index 8abe305..629a9dc 100644 --- a/Sources/Ohara/Ohara.csproj +++ b/Sources/Ohara/Ohara.csproj @@ -57,6 +57,12 @@ + + PageCarte.xaml + + + PageBateau.xaml + PagePersonnage.xaml @@ -69,7 +75,7 @@ - + MSBuild:Compile @@ -81,7 +87,7 @@ MSBuild:Compile - + MSBuild:Compile diff --git a/Sources/Ohara/PagePersonnage.xaml b/Sources/Ohara/PagePersonnage.xaml index f79911b..f1ec3ec 100644 --- a/Sources/Ohara/PagePersonnage.xaml +++ b/Sources/Ohara/PagePersonnage.xaml @@ -36,89 +36,91 @@ - - - - - - - - - - - - - + + + +