This commit is contained in:
2016-01-21 22:12:08 +01:00
parent a7b05df42e
commit db999b02bd
4 changed files with 5 additions and 7 deletions
+2
View File
@@ -218,6 +218,8 @@ namespace YJMPD_UWP.Model
GeofenceMonitor.Current.Geofences.Clear();
Selected = false;
App.Photo.Reset();
Destination = new BasicGeoposition() { Altitude = -1 };
App.Navigate(typeof(ScoreView));
UpdateGameStatus(GameStatus.ENDED);
+1 -1
View File
@@ -29,7 +29,7 @@ namespace YJMPD_UWP.ViewModels
if (App.Game.Status != Model.GameHandler.GameStatus.STARTED)
return;
Degrees = (int)(angle + -e.Heading.HeadingMagneticNorth);
Degrees = (int)(angle + -e.Heading.HeadingTrueNorth);
NotifyPropertyChanged(nameof(Degrees));
});
}
+2 -1
View File
@@ -31,7 +31,6 @@ namespace YJMPD_UWP.ViewModels
timer.Start();
else
{
secondsleft = 60;
timer.Stop();
}
});
@@ -41,6 +40,8 @@ namespace YJMPD_UWP.ViewModels
{
NotifyPropertyChanged(nameof(TimeOut));
Debug.WriteLine("Testing");
secondsleft--;
if(secondsleft <= 0)
{
-5
View File
@@ -28,11 +28,6 @@ namespace YJMPD_UWP.Views
ReadyButton.IsEnabled = false;
App.Api.Ready();
await Task.Delay(TimeSpan.FromMilliseconds(500));
App.Game.MoveToWaiting();
App.Navigate(typeof(WaitingView), "Waiting on other players...");
}
}
}