fix the navigation in gameboard
continuous-integration/drone/push Build is passing Details

old_branch_remy
rportet 11 months ago
parent 134a8be31f
commit c6b2cf8756

@ -22,6 +22,7 @@ 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 !");
Navigation.PushAsync(new SetPlayers());
Shell.Current.GoToAsync("SetPlayers");
}
public async void OnContinueClicked(object sender, EventArgs e)

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

@ -61,6 +61,7 @@
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();
Navigation.PushAsync(new Gameboard());
Shell.Current.GoToAsync("Gameboard");
}

Loading…
Cancel
Save