Add score rank icons
@ -41,6 +41,12 @@ else
|
|||||||
</CellTemplate>
|
</CellTemplate>
|
||||||
</Column>
|
</Column>
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.BestScore)" Title="Best Score"/>
|
<Column T="SongBestData" Field="@nameof(SongBestData.BestScore)" Title="Best Score"/>
|
||||||
|
<Column T="SongBestData" Field="@nameof(SongBestData.GoodCount)" Title="Good" />
|
||||||
|
<Column T="SongBestData" Field="@nameof(SongBestData.OkCount)" Title="Ok" />
|
||||||
|
<Column T="SongBestData" Field="@nameof(SongBestData.MissCount)" Title="Bad" />
|
||||||
|
<Column T="SongBestData" Field="@nameof(SongBestData.DrumrollCount)" Title="Drum Rolls" />
|
||||||
|
<Column T="SongBestData" Field="@nameof(SongBestData.ComboCount)" Title="Max Combo" />
|
||||||
|
@*<Column T="SongBestData" Field="@nameof(SongBestData.HitCount)" Title="Hit" />*@
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.BestCrown)" Title="Best Crown">
|
<Column T="SongBestData" Field="@nameof(SongBestData.BestCrown)" Title="Best Crown">
|
||||||
<CellTemplate>
|
<CellTemplate>
|
||||||
<MudTooltip Text="@(GetCrownText(context.Item.BestCrown))" Arrow="true" Placement="Placement.Top">
|
<MudTooltip Text="@(GetCrownText(context.Item.BestCrown))" Arrow="true" Placement="Placement.Top">
|
||||||
@ -48,14 +54,17 @@ else
|
|||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
</CellTemplate>
|
</CellTemplate>
|
||||||
</Column>
|
</Column>
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.BestScoreRank)" Title="Best Rank" />
|
<Column T="SongBestData" Field="@nameof(SongBestData.BestScoreRank)" Title="Best Rank">
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.BestRate)" Title="Best Rate"/>
|
<CellTemplate>
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.GoodCount)" Title="Good"/>
|
@if (context.Item.BestScoreRank is not ScoreRank.None)
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.OkCount)" Title="Ok"/>
|
{
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.MissCount)" Title="Miss"/>
|
<MudTooltip Text="@(getRankText(context.Item.BestScoreRank))" Arrow="true" Placement="Placement.Top">
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.ComboCount)" Title="Max Combo"/>
|
<img src="@($"/images/rank_{context.Item.BestScoreRank}.png")" alt="@(context.Item.BestScoreRank)" style="@ICON_STYLE" />
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.DrumrollCount)" Title="Drum Rolls"/>
|
</MudTooltip>
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.HitCount)" Title="Hit"/>
|
}
|
||||||
|
</CellTemplate>
|
||||||
|
</Column>
|
||||||
|
@*<Column T="SongBestData" Field="@nameof(SongBestData.BestRate)" Title="Best Rate"/>*@
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.IsFavorite)" Title="Favorite">
|
<Column T="SongBestData" Field="@nameof(SongBestData.IsFavorite)" Title="Favorite">
|
||||||
<CellTemplate>
|
<CellTemplate>
|
||||||
<MudToggleIconButton Toggled="@context.Item.IsFavorite"
|
<MudToggleIconButton Toggled="@context.Item.IsFavorite"
|
||||||
@ -126,4 +135,20 @@ else
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string getRankText(ScoreRank rank)
|
||||||
|
{
|
||||||
|
return rank switch
|
||||||
|
{
|
||||||
|
ScoreRank.None => "None",
|
||||||
|
ScoreRank.White => "Stylish (White)",
|
||||||
|
ScoreRank.Bronze => "Stylish (Bronze)",
|
||||||
|
ScoreRank.Silver => "Stylish (Silver)",
|
||||||
|
ScoreRank.Gold => "Graceful (Gold)",
|
||||||
|
ScoreRank.Sakura => "Graceful (Sakura)",
|
||||||
|
ScoreRank.Purple => "Graceful (Purple)",
|
||||||
|
ScoreRank.Dondaful => "Top Class (Donderful)",
|
||||||
|
_ => ""
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
BIN
TaikoWebUI/wwwroot/images/rank_Bronze.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
TaikoWebUI/wwwroot/images/rank_Dondaful.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
TaikoWebUI/wwwroot/images/rank_Gold.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
TaikoWebUI/wwwroot/images/rank_Purple.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
TaikoWebUI/wwwroot/images/rank_Sakura.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
TaikoWebUI/wwwroot/images/rank_Silver.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
TaikoWebUI/wwwroot/images/rank_White.png
Normal file
After Width: | Height: | Size: 11 KiB |