diff --git a/TaikoWebUI/Pages/PlayResults.razor b/TaikoWebUI/Pages/PlayResults.razor index 9beaea4..64a6d1b 100644 --- a/TaikoWebUI/Pages/PlayResults.razor +++ b/TaikoWebUI/Pages/PlayResults.razor @@ -30,52 +30,69 @@ @foreach (var genre in Enum.GetValues()) { - - - - - @GameDataService.GetMusicNameBySongId(context.Item.SongId) - @GameDataService.GetMusicArtistBySongId(context.Item.SongId) - - - - - - @(context.Item.Difficulty) - - - - - - - - @(context.Item.BestCrown) - - - - - - - - - - - - - - - - - - - - - + + + + + + + + @GameDataService.GetMusicNameBySongId(context.Item.SongId) + @GameDataService.GetMusicArtistBySongId(context.Item.SongId) + + + + + + + + + + + + + + @(context.Item.Difficulty) + + + + + + + + @(context.Item.BestCrown) + + + + + + @if (context.Item.BestScoreRank is not ScoreRank.None) + { + + @(context.Item.BestScoreRank) + + } + + + + + + + + @**@ + @**@ + + + + + } @@ -90,7 +107,7 @@ public int Baid { get; set; } private SongBestResponse? response; - + private const string ICON_STYLE = "width:25px; height:25px;"; private readonly List breadcrumbs = new() @@ -137,7 +154,23 @@ CrownType.Gold => "Full Combo", CrownType.Dondaful => "Donderful Combo", _ => "" - }; + }; + } + + 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)", + _ => "" + }; } } \ No newline at end of file diff --git a/TaikoWebUI/wwwroot/images/rank_Bronze.png b/TaikoWebUI/wwwroot/images/rank_Bronze.png new file mode 100644 index 0000000..8ca2d55 Binary files /dev/null and b/TaikoWebUI/wwwroot/images/rank_Bronze.png differ diff --git a/TaikoWebUI/wwwroot/images/rank_Dondaful.png b/TaikoWebUI/wwwroot/images/rank_Dondaful.png new file mode 100644 index 0000000..b43316d Binary files /dev/null and b/TaikoWebUI/wwwroot/images/rank_Dondaful.png differ diff --git a/TaikoWebUI/wwwroot/images/rank_Gold.png b/TaikoWebUI/wwwroot/images/rank_Gold.png new file mode 100644 index 0000000..7e36cf0 Binary files /dev/null and b/TaikoWebUI/wwwroot/images/rank_Gold.png differ diff --git a/TaikoWebUI/wwwroot/images/rank_Purple.png b/TaikoWebUI/wwwroot/images/rank_Purple.png new file mode 100644 index 0000000..821ffd1 Binary files /dev/null and b/TaikoWebUI/wwwroot/images/rank_Purple.png differ diff --git a/TaikoWebUI/wwwroot/images/rank_Sakura.png b/TaikoWebUI/wwwroot/images/rank_Sakura.png new file mode 100644 index 0000000..565a722 Binary files /dev/null and b/TaikoWebUI/wwwroot/images/rank_Sakura.png differ diff --git a/TaikoWebUI/wwwroot/images/rank_Silver.png b/TaikoWebUI/wwwroot/images/rank_Silver.png new file mode 100644 index 0000000..d4b977a Binary files /dev/null and b/TaikoWebUI/wwwroot/images/rank_Silver.png differ diff --git a/TaikoWebUI/wwwroot/images/rank_White.png b/TaikoWebUI/wwwroot/images/rank_White.png new file mode 100644 index 0000000..587b8d8 Binary files /dev/null and b/TaikoWebUI/wwwroot/images/rank_White.png differ