@inject IGameDataService GameDataService
@inject HttpClient Client
@inject LoginService LoginService
@inject IJSRuntime JSRuntime
@inject NavigationManager NavigationManager
@using TaikoWebUI.Utilities;
@using TaikoWebUI.Shared.Models;
@using SharedProject.Enums;
@page "/Users/{baid:int}/PlayHistory"
@Localizer["Play History"]
@if (response is null)
{
}
else
{
@if (LoginService.LoginRequired && (!LoginService.IsLoggedIn || (LoginService.GetLoggedInUser().Baid != Baid && !LoginService.IsAdmin)))
{
@Localizer["Log In First"]
}
else
{
@Localizer["Total Plays"]:@songHistoryDataMap.Values.Count
@Localizer["Play Time"]
@CultureInfo.CurrentCulture.TextInfo.ToTitleCase(context[0].PlayTime.ToString(Localizer["DateFormat"]))
@Localizer["Difficulty"]
@Localizer["Level"]
@Localizer["Song Name"]
@Localizer["Genre"]
@Localizer["Score"]
@Localizer["Crown"]
@Localizer["Rank"]
@Localizer["Good"]
@Localizer["OK"]
@Localizer["Bad"]
@Localizer["Drumroll"]
@Localizer["MAX Combo"]
@Localizer["Song Number"]
@* Difficulty rating *@
@* Star rating *@
@songHistoryData.Stars
@* Song title *@
@* Genre display *@
@GetGenreTitle(songHistoryData.Genre)
@(songHistoryData.Score)
@if (songHistoryData.ScoreRank is not ScoreRank.None)
{
}
@(songHistoryData.GoodCount)
@(songHistoryData.OkCount)
@(songHistoryData.MissCount)
@(songHistoryData.DrumrollCount)
@(songHistoryData.ComboCount)
@(songHistoryData.SongNumber + 1)
}
}