diff --git a/AideDeJeu/AideDeJeu.Android/AideDeJeu.Android.csproj b/AideDeJeu/AideDeJeu.Android/AideDeJeu.Android.csproj index d2c71390..6069c703 100644 --- a/AideDeJeu/AideDeJeu.Android/AideDeJeu.Android.csproj +++ b/AideDeJeu/AideDeJeu.Android/AideDeJeu.Android.csproj @@ -50,6 +50,9 @@ + + 1.60.0 + diff --git a/AideDeJeu/AideDeJeu.UWP/AideDeJeu.UWP.csproj b/AideDeJeu/AideDeJeu.UWP/AideDeJeu.UWP.csproj index 0888f0d0..dcfb9a17 100644 --- a/AideDeJeu/AideDeJeu.UWP/AideDeJeu.UWP.csproj +++ b/AideDeJeu/AideDeJeu.UWP/AideDeJeu.UWP.csproj @@ -165,6 +165,9 @@ + + 1.60.0 + diff --git a/AideDeJeu/AideDeJeu.iOS/AideDeJeu.iOS.csproj b/AideDeJeu/AideDeJeu.iOS/AideDeJeu.iOS.csproj index af17a113..8fbf056e 100644 --- a/AideDeJeu/AideDeJeu.iOS/AideDeJeu.iOS.csproj +++ b/AideDeJeu/AideDeJeu.iOS/AideDeJeu.iOS.csproj @@ -122,6 +122,9 @@ + + 1.60.0 + diff --git a/AideDeJeu/AideDeJeu/AideDeJeu.csproj b/AideDeJeu/AideDeJeu/AideDeJeu.csproj index 6c71ef7d..6c7d451f 100644 --- a/AideDeJeu/AideDeJeu/AideDeJeu.csproj +++ b/AideDeJeu/AideDeJeu/AideDeJeu.csproj @@ -9,6 +9,7 @@ + diff --git a/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml b/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml index 2f045c28..9eec07dd 100644 --- a/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml +++ b/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml @@ -2,6 +2,7 @@ @@ -9,50 +10,55 @@ - + + + + \ No newline at end of file diff --git a/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml.cs b/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml.cs index 66d21451..6f934e46 100644 --- a/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml.cs +++ b/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml.cs @@ -1,6 +1,9 @@  using AideDeJeu.ViewModels; using AideDeJeuLib.Monsters; +using SkiaSharp; +using SkiaSharp.Views.Forms; +using System; using Xamarin.Forms; using Xamarin.Forms.Xaml; @@ -31,5 +34,63 @@ namespace AideDeJeu.Views viewModel = new MonsterDetailViewModel(item); BindingContext = viewModel; } + + void PaintHeaderBar(object sender, SKPaintSurfaceEventArgs args) + { + SKImageInfo info = args.Info; + SKSurface surface = args.Surface; + SKCanvas canvas = surface.Canvas; + + canvas.Clear(); + + SKPath path = new SKPath + { + FillType = SKPathFillType.EvenOdd + }; + path.AddRect(new SKRect(0, 0, info.Width, 8)); + + SKPaint paint = new SKPaint() + { + Style = SKPaintStyle.Fill, + Color = new SKColor(0xFFE69A28) + }; + + canvas.DrawPath(path, paint); + + paint.Style = SKPaintStyle.Stroke; + paint.StrokeWidth = 2; + paint.Color = SKColors.Black; + + canvas.DrawPath(path, paint); + } + + void PaintRedBar(object sender, SKPaintSurfaceEventArgs args) + { + SKImageInfo info = args.Info; + SKSurface surface = args.Surface; + SKCanvas canvas = surface.Canvas; + + canvas.Clear(); + + SKPath path = new SKPath + { + FillType = SKPathFillType.EvenOdd + }; + path.AddPoly(new SKPoint[] { new SKPoint(0,0), new SKPoint(info.Width, 8), new SKPoint(0, 8) }); + + SKPaint paint = new SKPaint() + { + Style = SKPaintStyle.Fill, + Color = new SKColor(0xFF922610) + }; + + canvas.DrawPath(path, paint); + + //paint.Style = SKPaintStyle.Stroke; + //paint.StrokeWidth = 2; + //paint.Color = SKColors.Black; + + //canvas.DrawPath(path, paint); + } } } \ No newline at end of file