diff --git a/website/Pages/PlayerSimilar.razor b/website/Pages/PlayerSimilar.razor
index e1a0d02..2f93c51 100644
--- a/website/Pages/PlayerSimilar.razor
+++ b/website/Pages/PlayerSimilar.razor
@@ -38,14 +38,14 @@
- @if (Player == null)
+ @if (!ready)
{
Loading...
@@ -101,60 +101,193 @@
}
else
{
-
Similar Players
- foreach (SimilarRecording rec in Similar)
- {
- string chartUrl = ChartsUrl.CreateSimilarUrl(_atlasChartIdSimilar, rec.Id);
-
- @rec.Name
-
-
- Score |
- @rec.SessionStatisticsPlain.Score |
-
-
- DamageDone |
- @rec.SessionStatisticsPlain.DamageDone |
-
-
- BulletsFired |
- @rec.SessionStatisticsPlain.BulletsFired |
-
-
- PelletsDestroyedLarge |
- @rec.SessionStatisticsPlain.PelletsDestroyedLarge |
-
-
- PelletsDestroyedMedium |
- @rec.SessionStatisticsPlain.PelletsDestroyedMedium |
-
-
- PelletsDestroyedSmall |
- @rec.SessionStatisticsPlain.PelletsDestroyedSmall |
-
-
- PowerUpBulletDamageCollected |
- @rec.SessionStatisticsPlain.PowerUpBulletDamageCollected |
-
-
- PowerUpBulletSpeedCollected |
- @rec.SessionStatisticsPlain.PowerUpBulletSpeedCollected |
-
-
- PowerUpPlayerSpeedCollected |
- @rec.SessionStatisticsPlain.PowerUpPlayerSpeedCollected |
-
-
-
-
-
- }
+ rec = Similar.First(); // this player
+ chartUrl = ChartsUrl.CreateSimilarUrl(_atlasChartIdSimilar, rec.Id);
+
Your Best Run
+
+ @rec.Name
+
+
+ Score |
+ @rec.SessionStatisticsPlain.Score |
+
+
+ DamageDone |
+ @rec.SessionStatisticsPlain.DamageDone |
+
+
+ BulletsFired |
+ @rec.SessionStatisticsPlain.BulletsFired |
+
+
+ PelletsDestroyedLarge |
+ @rec.SessionStatisticsPlain.PelletsDestroyedLarge |
+
+
+ PelletsDestroyedMedium |
+ @rec.SessionStatisticsPlain.PelletsDestroyedMedium |
+
+
+ PelletsDestroyedSmall |
+ @rec.SessionStatisticsPlain.PelletsDestroyedSmall |
+
+
+ PowerUpBulletDamageCollected |
+ @rec.SessionStatisticsPlain.PowerUpBulletDamageCollected |
+
+
+ PowerUpBulletSpeedCollected |
+ @rec.SessionStatisticsPlain.PowerUpBulletSpeedCollected |
+
+
+ PowerUpPlayerSpeedCollected |
+ @rec.SessionStatisticsPlain.PowerUpPlayerSpeedCollected |
+
+
+
+
+
+
+ rec = Similar[1];
+ chartUrl = ChartsUrl.CreateSimilarUrl(_atlasChartIdSimilar, rec.Id);
+
Top Similar Player OVERALL
+
+ @rec.Name
+
+
+ Score |
+ @rec.SessionStatisticsPlain.Score |
+
+
+ DamageDone |
+ @rec.SessionStatisticsPlain.DamageDone |
+
+
+ BulletsFired |
+ @rec.SessionStatisticsPlain.BulletsFired |
+
+
+ PelletsDestroyedLarge |
+ @rec.SessionStatisticsPlain.PelletsDestroyedLarge |
+
+
+ PelletsDestroyedMedium |
+ @rec.SessionStatisticsPlain.PelletsDestroyedMedium |
+
+
+ PelletsDestroyedSmall |
+ @rec.SessionStatisticsPlain.PelletsDestroyedSmall |
+
+
+ PowerUpBulletDamageCollected |
+ @rec.SessionStatisticsPlain.PowerUpBulletDamageCollected |
+
+
+ PowerUpBulletSpeedCollected |
+ @rec.SessionStatisticsPlain.PowerUpBulletSpeedCollected |
+
+
+ PowerUpPlayerSpeedCollected |
+ @rec.SessionStatisticsPlain.PowerUpPlayerSpeedCollected |
+
+
+
+
+
+
+ rec = SimilarBySpeed[1]; // 0 is this player
+ chartUrl = ChartsUrl.CreateSimilarUrl(_atlasChartIdSimilar, rec.Id);
+
Top Similar Player BY SPEED
+
+ @rec.Name
+
+
+
+
+ rec = SimilarByAccel[1]; // 0 is this player
+ chartUrl = ChartsUrl.CreateSimilarUrl(_atlasChartIdSimilar, rec.Id);
+
Top Similar Player BY ACCELERATION
+
+ @rec.Name
+
+
+
+
+ rec = SimilarByStats[1];
+ chartUrl = ChartsUrl.CreateSimilarUrl(_atlasChartIdSimilar, rec.Id);
+
Top Similar Player BY STATS
+
+ @rec.Name
+
+
+ Score |
+ @rec.SessionStatisticsPlain.Score |
+
+
+ DamageDone |
+ @rec.SessionStatisticsPlain.DamageDone |
+
+
+ BulletsFired |
+ @rec.SessionStatisticsPlain.BulletsFired |
+
+
+ PelletsDestroyedLarge |
+ @rec.SessionStatisticsPlain.PelletsDestroyedLarge |
+
+
+ PelletsDestroyedMedium |
+ @rec.SessionStatisticsPlain.PelletsDestroyedMedium |
+
+
+ PelletsDestroyedSmall |
+ @rec.SessionStatisticsPlain.PelletsDestroyedSmall |
+
+
+ PowerUpBulletDamageCollected |
+ @rec.SessionStatisticsPlain.PowerUpBulletDamageCollected |
+
+
+ PowerUpBulletSpeedCollected |
+ @rec.SessionStatisticsPlain.PowerUpBulletSpeedCollected |
+
+
+ PowerUpPlayerSpeedCollected |
+ @rec.SessionStatisticsPlain.PowerUpPlayerSpeedCollected |
+
+
+
+
}
}
@@ -164,10 +297,15 @@
private string _eventId = string.Empty;
- private Player Player { get; set; } = new();
- private List