@inject IGameDataService GameDataService @inject HttpClient Client @inject LoginService LoginService @inject IJSRuntime JSRuntime @inject NavigationManager NavigationManager @inject Blazored.LocalStorage.ILocalStorageService LocalStorage @using TaikoWebUI.Utilities; @page "/Users/{baid:int}/HighScores" @Localizer["High Scores"] @if (response is null) { } else { @if (LoginService.LoginRequired && (!LoginService.IsLoggedIn || (LoginService.GetLoggedInUser().Baid != Baid && !LoginService.IsAdmin))) { if (!LoginService.IsLoggedIn) { NavigationManager.NavigateTo("/Login"); } else { NavigationManager.NavigateTo("/"); } } else { @foreach (var difficulty in Enum.GetValues()) { @if (difficulty is not Difficulty.None) { @if (songBestDataMap.TryGetValue(difficulty, out var value)) { // Rows per page 25 @Localizer["Song Name"] @Localizer["Level"] @Localizer["Genre"] @Localizer["Best Score"] @Localizer["Best Crown"] @Localizer["Best Rank"] @Localizer["Good"] @Localizer["OK"] @Localizer["Bad"] @Localizer["Drumroll"] @Localizer["MAX Combo"] @Localizer["Last Played"] @Localizer["Total Plays"] @Localizer["Total Clears"] @Localizer["Total Full Combos"] @Localizer["Total Donderful Combos"]
@GameDataService.GetMusicStarLevel(context.SongId, difficulty) @ScoreUtils.GetGenreTitle(context.Genre) @context.BestScore @(ScoreUtils.GetCrownText(context.BestCrown)) @if (context.BestScoreRank is not ScoreRank.None) { @(ScoreUtils.GetRankText(context.BestScoreRank)) } @context.GoodCount @context.OkCount @context.MissCount @context.DrumrollCount @context.ComboCount @context.LastPlayTime @context.PlayCount @context.ClearCount @context.FullComboCount @context.PerfectCount
} else { No data for selected difficulty. }
} }
} }