|
|
@ -326,11 +326,15 @@ namespace TheGameExtreme.view
|
|
|
|
private void OnEndGame(object sender, EventArgs args)
|
|
|
|
private void OnEndGame(object sender, EventArgs args)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
gameOption.Children.Clear();
|
|
|
|
gameOption.Children.Clear();
|
|
|
|
Button retryButton = new Button();
|
|
|
|
Button retryButton = new Button()
|
|
|
|
retryButton.Text = AppResources.StrRetry;
|
|
|
|
{
|
|
|
|
retryButton.CornerRadius = 10;
|
|
|
|
Text = AppResources.StrRetry,
|
|
|
|
|
|
|
|
CornerRadius = 10,
|
|
|
|
|
|
|
|
BackgroundColor = (Color)Application.Current.Resources["Gold"],
|
|
|
|
|
|
|
|
VerticalOptions = LayoutOptions.Center,
|
|
|
|
|
|
|
|
HorizontalOptions = LayoutOptions.End
|
|
|
|
|
|
|
|
};
|
|
|
|
retryButton.Clicked += Retry;
|
|
|
|
retryButton.Clicked += Retry;
|
|
|
|
retryButton.BackgroundColor = (Color)Application.Current.Resources["Gold"];
|
|
|
|
|
|
|
|
gameOption.Children.Add(retryButton);
|
|
|
|
gameOption.Children.Add(retryButton);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -375,10 +379,16 @@ namespace TheGameExtreme.view
|
|
|
|
progressBar.Progress = 1f;
|
|
|
|
progressBar.Progress = 1f;
|
|
|
|
|
|
|
|
|
|
|
|
gameOption.Children.Clear();
|
|
|
|
gameOption.Children.Clear();
|
|
|
|
Button button = new Button();
|
|
|
|
Button button = new Button()
|
|
|
|
button.Text = AppResources.StrEndTurn;
|
|
|
|
{
|
|
|
|
|
|
|
|
Padding = 10,
|
|
|
|
|
|
|
|
Text = AppResources.StrEndTurn,
|
|
|
|
|
|
|
|
BackgroundColor = (Color)Application.Current.Resources["Gold"],
|
|
|
|
|
|
|
|
CornerRadius = 10,
|
|
|
|
|
|
|
|
VerticalOptions = LayoutOptions.Center,
|
|
|
|
|
|
|
|
HorizontalOptions = LayoutOptions.End
|
|
|
|
|
|
|
|
};
|
|
|
|
button.Clicked += EndTurn;
|
|
|
|
button.Clicked += EndTurn;
|
|
|
|
button.BackgroundColor = (Color)Application.Current.Resources["Gold"];
|
|
|
|
|
|
|
|
gameOption.Children.Add(button);
|
|
|
|
gameOption.Children.Add(button);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|