revert branch by remy without sound
continuous-integration/drone/push Build is passing Details

revert fix the navigation in gameboard
master
Jérémy Mouyon 11 months ago
parent 448a44386b
commit d16d488477

@ -22,7 +22,6 @@ namespace Qwirkle
MainPage = new AppShell();
Routing.RegisterRoute(nameof(SetPlayers), typeof(SetPlayers));
Routing.RegisterRoute(nameof(Settings), typeof(Settings));
Routing.RegisterRoute(nameof(Gameboard), typeof(Gameboard));
Routing.RegisterRoute(nameof(Rules), typeof(Rules));
Routing.RegisterRoute(nameof(MainPage), typeof(MainPage));

@ -20,7 +20,7 @@ namespace Qwirkle
{
DisplayAlert("Game notification", "Enter minimun 2 player and max 4 player !", "Ok ! Lets's go !");
Shell.Current.GoToAsync("SetPlayers");
Navigation.PushAsync(new SetPlayers());
}
public async void OnContinueClicked(object sender, EventArgs e)

@ -249,11 +249,7 @@ public partial class Gameboard : ContentPage
private void OnButtonBookClicked(object? sender, EventArgs e)
{
Shell.Current.GoToAsync("Rules");
}
private void OnButtonSettingsClicked(object? sender, EventArgs e)
{
Shell.Current.GoToAsync("Settings");
Navigation.PushAsync(new Rules());
}

@ -65,7 +65,6 @@
HorizontalOptions="Start"
Grid.Row="2" Grid.Column="1"
Text="Settings"
Clicked="OnButtonSettingsClicked"
ToolTipProperties.Text="Click to check your settings -_-"
Style="{StaticResource GameButton}" />

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

Loading…
Cancel
Save