end of game / build edit

master
Jérémy Mouyon 11 months ago
parent e85e47ab26
commit 73f1fd91ea

@ -54,7 +54,7 @@ public partial class SetPlayers : ContentPage
game.GiveTilesToPlayers(); game.GiveTilesToPlayers();
game.SetNextPlayer(); game.SetNextPlayer();
Shell.Current.GoToAsync("Gameboard"); Shell.Current.GoToAsync("Gameboard");
//Navigation.PushAsync(new Gameboard());
} }

@ -1,4 +1,5 @@
using CommunityToolkit.Maui.Views; using CommunityToolkit.Maui.Views;
using Microsoft.Maui.Controls;
using QwirkleClassLibrary.Games; using QwirkleClassLibrary.Games;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
@ -32,7 +33,8 @@ public partial class PopUpEndGame : Popup
public async void OnButtonNextClick(object sender, EventArgs e) public async void OnButtonNextClick(object sender, EventArgs e)
{ {
await CloseAsync(); Close();
await Shell.Current.GoToAsync("MainPage");
} }
} }

@ -60,7 +60,7 @@
<None Remove="Resources\Fonts\DiloWorld.ttf" /> <None Remove="Resources\Fonts\DiloWorld.ttf" />
<None Remove="Resources\Fonts\Lexend-Medium.ttf" /> <None Remove="Resources\Fonts\Lexend-Medium.ttf" />
<None Remove="Resources\Images\qwirklelogo.png" /> <None Remove="Resources\Images\qwirklelogo.png" />
<None Remove="Resources\Images\uca.png" /> <None Remove="Resources\Images\uca.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

Loading…
Cancel
Save