diff --git a/YJMPD-UWP/Assets/SplashScreen.scale-200.png b/YJMPD-UWP/Assets/SplashScreen.scale-200.png
index 023e7f1..225a451 100644
Binary files a/YJMPD-UWP/Assets/SplashScreen.scale-200.png and b/YJMPD-UWP/Assets/SplashScreen.scale-200.png differ
diff --git a/YJMPD-UWP/Assets/Square150x150Logo.scale-200.png b/YJMPD-UWP/Assets/Square150x150Logo.scale-200.png
index af49fec..fa2e88c 100644
Binary files a/YJMPD-UWP/Assets/Square150x150Logo.scale-200.png and b/YJMPD-UWP/Assets/Square150x150Logo.scale-200.png differ
diff --git a/YJMPD-UWP/Assets/Square44x44Logo.scale-200.png b/YJMPD-UWP/Assets/Square44x44Logo.scale-200.png
index ce342a2..273f4bd 100644
Binary files a/YJMPD-UWP/Assets/Square44x44Logo.scale-200.png and b/YJMPD-UWP/Assets/Square44x44Logo.scale-200.png differ
diff --git a/YJMPD-UWP/Assets/Wide310x150Logo.scale-200.png b/YJMPD-UWP/Assets/Wide310x150Logo.scale-200.png
index 288995b..cf2e2f8 100644
Binary files a/YJMPD-UWP/Assets/Wide310x150Logo.scale-200.png and b/YJMPD-UWP/Assets/Wide310x150Logo.scale-200.png differ
diff --git a/YJMPD-UWP/MainPage.xaml b/YJMPD-UWP/MainPage.xaml
index 7b6fb66..14a3048 100644
--- a/YJMPD-UWP/MainPage.xaml
+++ b/YJMPD-UWP/MainPage.xaml
@@ -117,7 +117,7 @@
-
+
diff --git a/YJMPD-UWP/MainPage.xaml.cs b/YJMPD-UWP/MainPage.xaml.cs
index 26f2e8d..38e5833 100644
--- a/YJMPD-UWP/MainPage.xaml.cs
+++ b/YJMPD-UWP/MainPage.xaml.cs
@@ -121,7 +121,11 @@ namespace YJMPD_UWP
NavView.IsPaneOpen = false;
if (NavListHome.IsSelected)
+ {
+ if (Frame.BackStack.Count >= 1)
+ Frame.BackStack.Clear();
Frame.Navigate(typeof(MatchView));
+ }
else
if (NavListStatistics.IsSelected)
Frame.Navigate(typeof(StatisticsView));
@@ -138,9 +142,10 @@ namespace YJMPD_UWP
NavView.IsPaneOpen = false;
}
- private async void BackToGame_Tapped(object sender, TappedRoutedEventArgs e)
+ private void BackToGame_Click(object sender, RoutedEventArgs e)
{
- bool b = await Util.ShowConfirmDialog("Not implemented", "", Util.DialogType.OKCANCEL);
+ NavView.IsPaneOpen = false;
+ App.Game.BackToGame();
}
private void Content_ManipulationCompleted(object sender, ManipulationCompletedRoutedEventArgs e)
diff --git a/YJMPD-UWP/Model/GameHandler.cs b/YJMPD-UWP/Model/GameHandler.cs
index 2e8efa6..8338333 100644
--- a/YJMPD-UWP/Model/GameHandler.cs
+++ b/YJMPD-UWP/Model/GameHandler.cs
@@ -6,6 +6,7 @@ using Windows.Foundation;
using YJMPD_UWP.Helpers;
using YJMPD_UWP.Helpers.EventArgs;
using YJMPD_UWP.Model.Object;
+using YJMPD_UWP.Views;
namespace YJMPD_UWP.Model
{
@@ -126,5 +127,28 @@ namespace YJMPD_UWP.Model
UpdateGameStatus(GameStatus.STOPPED);
return true;
}
+
+
+ public void BackToGame()
+ {
+ switch(Status)
+ {
+ default:
+ case GameStatus.STOPPED:
+ break;
+ case GameStatus.SEARCHING:
+ App.Navigate(typeof(MatchView));
+ break;
+ case GameStatus.WAITING:
+ App.Navigate(typeof(WaitingView));
+ break;
+ case GameStatus.STARTED:
+ App.Navigate(typeof(GameView));
+ break;
+ case GameStatus.ENDED:
+ App.Navigate(typeof(ScoreView));
+ break;
+ }
+ }
}
}
diff --git a/YJMPD-UWP/Themes/DefaultStyles.xaml b/YJMPD-UWP/Themes/DefaultStyles.xaml
index 0c0d638..1d59217 100644
--- a/YJMPD-UWP/Themes/DefaultStyles.xaml
+++ b/YJMPD-UWP/Themes/DefaultStyles.xaml
@@ -5,9 +5,16 @@
-
+
+
@@ -22,6 +29,11 @@
+
+