2024-03-13 16:23:22 +01:00
|
|
|
@using TaikoWebUI.Utilities;
|
|
|
|
|
|
|
|
<MudCard Outlined="true" Elevation="0">
|
|
|
|
<MudCardHeader>
|
2024-05-01 17:13:47 +02:00
|
|
|
<MudGrid Spacing="2">
|
|
|
|
<MudItem xs="12" md="4">
|
|
|
|
<MudText Typo="Typo.h6">@Localizer["Play History"]</MudText>
|
|
|
|
</MudItem>
|
|
|
|
<MudItem xs="12" md="8">
|
2024-05-26 22:25:24 +02:00
|
|
|
<MudText Typo="Typo.h6">@Localizer["Total Credits Played"]:@Items.Count</MudText>
|
2024-05-01 17:13:47 +02:00
|
|
|
</MudItem>
|
|
|
|
</MudGrid>
|
2024-03-13 16:23:22 +01:00
|
|
|
</MudCardHeader>
|
2024-05-01 17:13:47 +02:00
|
|
|
@if (Items.Count > 0)
|
2024-03-13 16:23:22 +01:00
|
|
|
{
|
|
|
|
<MudCardContent Class="p-0">
|
|
|
|
<MudTable Items="Items" Elevation="0" Striped="true">
|
|
|
|
<HeaderContent>
|
2024-05-01 17:13:47 +02:00
|
|
|
<MudTh>
|
2024-05-17 00:32:46 +02:00
|
|
|
<MudTableSortLabel InitialDirection="SortDirection.Descending" T="SongHistoryData" SortBy="x => x.PlayTime">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["Play Time"]
|
|
|
|
</MudTableSortLabel>
|
|
|
|
</MudTh>
|
|
|
|
<MudTh>
|
2024-05-17 00:32:46 +02:00
|
|
|
<MudTableSortLabel T="SongHistoryData" SortBy="x => x.Difficulty">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["Difficulty"]
|
|
|
|
</MudTableSortLabel>
|
|
|
|
</MudTh>
|
|
|
|
<MudTh>
|
2024-05-17 00:32:46 +02:00
|
|
|
<MudTableSortLabel T="SongHistoryData" SortBy="x => x.Crown">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["Crown"]
|
|
|
|
</MudTableSortLabel>
|
|
|
|
</MudTh>
|
|
|
|
<MudTh>
|
2024-05-17 00:32:46 +02:00
|
|
|
<MudTableSortLabel T="SongHistoryData" SortBy="x => x.ScoreRank">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["Rank"]
|
|
|
|
</MudTableSortLabel>
|
|
|
|
</MudTh>
|
|
|
|
<MudTh>
|
2024-05-17 00:32:46 +02:00
|
|
|
<MudTableSortLabel T="SongHistoryData" SortBy="x => x.Score">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["Score"]
|
|
|
|
</MudTableSortLabel>
|
|
|
|
</MudTh>
|
|
|
|
<MudTh>
|
2024-05-17 00:32:46 +02:00
|
|
|
<MudTableSortLabel T="SongHistoryData" SortBy="x => x.GoodCount">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["Good"]
|
|
|
|
</MudTableSortLabel>
|
|
|
|
</MudTh>
|
|
|
|
<MudTh>
|
2024-05-17 00:32:46 +02:00
|
|
|
<MudTableSortLabel T="SongHistoryData" SortBy="x => x.OkCount">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["OK"]
|
|
|
|
</MudTableSortLabel>
|
|
|
|
</MudTh>
|
|
|
|
<MudTh>
|
2024-05-17 00:32:46 +02:00
|
|
|
<MudTableSortLabel T="SongHistoryData" SortBy="x => x.MissCount">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["Bad"]
|
|
|
|
</MudTableSortLabel>
|
|
|
|
</MudTh>
|
|
|
|
<MudTh>
|
2024-05-17 00:32:46 +02:00
|
|
|
<MudTableSortLabel T="SongHistoryData" SortBy="x => x.DrumrollCount">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["Drumroll"]
|
|
|
|
</MudTableSortLabel>
|
|
|
|
</MudTh>
|
|
|
|
<MudTh>
|
2024-05-17 00:32:46 +02:00
|
|
|
<MudTableSortLabel T="SongHistoryData" SortBy="x => x.ComboCount">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["MAX Combo"]
|
|
|
|
</MudTableSortLabel>
|
|
|
|
</MudTh>
|
2024-03-13 16:23:22 +01:00
|
|
|
</HeaderContent>
|
|
|
|
<RowTemplate>
|
2024-03-13 16:36:06 +01:00
|
|
|
<MudTd>@context.PlayTime.ToString(Localizer["DateFormat"])</MudTd>
|
|
|
|
<MudTd>
|
2024-05-01 17:13:47 +02:00
|
|
|
<img src="@ScoreUtils.GetDifficultyIcon(context.Difficulty)" alt="@context.Difficulty" title="@context.Difficulty" style="@IconStyle"/>
|
2024-03-13 16:36:06 +01:00
|
|
|
</MudTd>
|
|
|
|
<MudTd>
|
2024-05-01 17:13:47 +02:00
|
|
|
<img src="@($"/images/crown_{context.Crown}.png")" alt="@(ScoreUtils.GetCrownText(context.Crown))" title="@(ScoreUtils.GetCrownText(context.Crown))" style="@IconStyle"/>
|
2024-03-13 16:36:06 +01:00
|
|
|
</MudTd>
|
|
|
|
<MudTd>
|
2024-05-01 17:13:47 +02:00
|
|
|
@if (context.ScoreRank is not ScoreRank.None)
|
|
|
|
{
|
|
|
|
<img src="@($"/images/rank_{context.ScoreRank}.png")" alt="@(ScoreUtils.GetRankText(context.ScoreRank))" title="@(ScoreUtils.GetRankText(context.ScoreRank))" style="@IconStyle"/>
|
|
|
|
}
|
2024-03-13 16:36:06 +01:00
|
|
|
</MudTd>
|
|
|
|
<MudTd>@context.Score</MudTd>
|
|
|
|
<MudTd>@context.GoodCount</MudTd>
|
|
|
|
<MudTd>@context.OkCount</MudTd>
|
|
|
|
<MudTd>@context.MissCount</MudTd>
|
|
|
|
<MudTd>@context.DrumrollCount</MudTd>
|
|
|
|
<MudTd>@context.ComboCount</MudTd>
|
|
|
|
</RowTemplate>
|
|
|
|
</MudTable>
|
|
|
|
</MudCardContent>
|
2024-03-13 16:23:22 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<MudCardContent>
|
|
|
|
<MudText Typo="Typo.body2" Class="pt-4 pb-8" Color="Color.Surface" Align="Align.Center">
|
2024-05-01 17:13:47 +02:00
|
|
|
@Localizer["No Play History Found"]
|
2024-03-13 16:23:22 +01:00
|
|
|
</MudText>
|
|
|
|
</MudCardContent>
|
|
|
|
}
|
|
|
|
</MudCard>
|
|
|
|
|
|
|
|
@code {
|
2024-05-17 00:32:46 +02:00
|
|
|
[Parameter] public List<SongHistoryData> Items { get; set; } = new();
|
2024-03-13 16:23:22 +01:00
|
|
|
private const string IconStyle = "width:25px; height:25px;";
|
2024-05-01 17:13:47 +02:00
|
|
|
}
|