1
0
mirror of synced 2024-11-14 10:27:48 +01:00

PlayResults page UI updates

This commit is contained in:
shiibe 2022-09-10 01:32:13 -04:00
parent 510fb6ce00
commit 0fab2e02aa
10 changed files with 28 additions and 2 deletions

View File

@ -32,9 +32,21 @@ else
<MudText Typo="Typo.caption">@GameDataService.GetMusicArtistBySongId(context.Item.SongId)</MudText>
</CellTemplate>
</Column>
<Column T="SongBestData" Field="@nameof(SongBestData.Difficulty)" Title="Difficulty"/>
<Column T="SongBestData" Field="@nameof(SongBestData.Difficulty)" Title="Difficulty">
<CellTemplate>
<MudTooltip Text="@(context.Item.Difficulty.ToString())" Arrow="true" Placement="Placement.Top">
<img src="@($"/images/{context.Item.Difficulty}.png")" alt="@(context.Item.Difficulty)" style="@(iconStyle)" />
</MudTooltip>
</CellTemplate>
</Column>
<Column T="SongBestData" Field="@nameof(SongBestData.BestScore)" Title="Best Score"/>
<Column T="SongBestData" Field="@nameof(SongBestData.BestCrown)" Title="Best Crown"/>
<Column T="SongBestData" Field="@nameof(SongBestData.BestCrown)" Title="Best Crown" >
<CellTemplate>
<MudTooltip Text="@(getCrownText(context.Item.BestCrown.ToString()))" Arrow="true" Placement="Placement.Top">
<img src="@($"/images/crown_{context.Item.BestCrown}.png")" alt="@(context.Item.BestCrown)" style="@(iconStyle)" />
</MudTooltip>
</CellTemplate>
</Column>
<Column T="SongBestData" Field="@nameof(SongBestData.BestScoreRank)" Title="Best Rank" />
<Column T="SongBestData" Field="@nameof(SongBestData.BestRate)" Title="Best Rate"/>
<Column T="SongBestData" Field="@nameof(SongBestData.IsFavorite)" Title="Favorite">
@ -64,6 +76,8 @@ else
private SongBestResponse? response;
private String iconStyle = "width:25px; height:25px;";
private List<BreadcrumbItem> breadcrumbs = new()
{
new BreadcrumbItem("Cards", href: "/Cards"),
@ -93,4 +107,16 @@ else
}
}
private string getCrownText(String crown)
{
return crown switch
{
"None" => "Fail",
"Clear" => "Cleared",
"Gold" => "Full Combo",
"Dondaful" => "Donderful Combo",
_ => ""
};
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB