diff --git a/TaikoWebUI/Localization/LocalizationResource.Designer.cs b/TaikoWebUI/Localization/LocalizationResource.Designer.cs index b0f9c3e..b217b65 100644 --- a/TaikoWebUI/Localization/LocalizationResource.Designer.cs +++ b/TaikoWebUI/Localization/LocalizationResource.Designer.cs @@ -275,6 +275,15 @@ namespace TaikoWebUI.Localization { } } + /// + /// Looks up a localized string similar to . + /// + internal static string Easy { + get { + return ResourceManager.GetString("Easy", resourceCulture); + } + } + /// /// Looks up a localized string similar to . /// @@ -392,6 +401,15 @@ namespace TaikoWebUI.Localization { } } + /// + /// Looks up a localized string similar to . + /// + internal static string Hard { + get { + return ResourceManager.GetString("Hard", resourceCulture); + } + } + /// /// Looks up a localized string similar to . /// @@ -509,6 +527,15 @@ namespace TaikoWebUI.Localization { } } + /// + /// Looks up a localized string similar to . + /// + internal static string Normal { + get { + return ResourceManager.GetString("Normal", resourceCulture); + } + } + /// /// Looks up a localized string similar to . /// @@ -527,6 +554,15 @@ namespace TaikoWebUI.Localization { } } + /// + /// Looks up a localized string similar to . + /// + internal static string Oni { + get { + return ResourceManager.GetString("Oni", resourceCulture); + } + } + /// /// Looks up a localized string similar to . /// @@ -626,6 +662,15 @@ namespace TaikoWebUI.Localization { } } + /// + /// Looks up a localized string similar to . + /// + internal static string Rows_Per_Page_ { + get { + return ResourceManager.GetString("Rows Per Page:", resourceCulture); + } + } + /// /// Looks up a localized string similar to . /// @@ -788,6 +833,15 @@ namespace TaikoWebUI.Localization { } } + /// + /// Looks up a localized string similar to . + /// + internal static string Ura_Oni { + get { + return ResourceManager.GetString("Ura Oni", resourceCulture); + } + } + /// /// Looks up a localized string similar to . /// diff --git a/TaikoWebUI/Localization/LocalizationResource.en-US.resx b/TaikoWebUI/Localization/LocalizationResource.en-US.resx index 9449c72..6ec5b6f 100644 --- a/TaikoWebUI/Localization/LocalizationResource.en-US.resx +++ b/TaikoWebUI/Localization/LocalizationResource.en-US.resx @@ -576,4 +576,22 @@ Success + + Ura + + + Extreme + + + Hard + + + Normal + + + Easy + + + Rows Per Page: + \ No newline at end of file diff --git a/TaikoWebUI/Localization/LocalizationResource.ja.resx b/TaikoWebUI/Localization/LocalizationResource.ja.resx index cc0a99f..0baa179 100644 --- a/TaikoWebUI/Localization/LocalizationResource.ja.resx +++ b/TaikoWebUI/Localization/LocalizationResource.ja.resx @@ -576,4 +576,22 @@ 成功 + + おに裏 + + + おに + + + むずかしい + + + ふつう + + + かんたん + + + 1ページ当たりの行数 + \ No newline at end of file diff --git a/TaikoWebUI/Localization/LocalizationResource.resx b/TaikoWebUI/Localization/LocalizationResource.resx index ed24dfd..8e79653 100644 --- a/TaikoWebUI/Localization/LocalizationResource.resx +++ b/TaikoWebUI/Localization/LocalizationResource.resx @@ -369,4 +369,22 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/TaikoWebUI/Localization/LocalizationResource.zh-Hans.resx b/TaikoWebUI/Localization/LocalizationResource.zh-Hans.resx index c84f486..6991bcf 100644 --- a/TaikoWebUI/Localization/LocalizationResource.zh-Hans.resx +++ b/TaikoWebUI/Localization/LocalizationResource.zh-Hans.resx @@ -573,4 +573,22 @@ 成功 + + 里譜面 + + + 魔王 + + + 困难 + + + 普通 + + + 简单 + + + 每页行数 + \ No newline at end of file diff --git a/TaikoWebUI/Localization/LocalizationResource.zh-Hant.resx b/TaikoWebUI/Localization/LocalizationResource.zh-Hant.resx index 235cd14..7aece05 100644 --- a/TaikoWebUI/Localization/LocalizationResource.zh-Hant.resx +++ b/TaikoWebUI/Localization/LocalizationResource.zh-Hant.resx @@ -573,4 +573,22 @@ 成功 + + 裏譜面 + + + 魔王 + + + 困難 + + + 普通 + + + 簡單 + + + 每頁行數 + \ No newline at end of file diff --git a/TaikoWebUI/Pages/DaniDojo.razor.cs b/TaikoWebUI/Pages/DaniDojo.razor.cs index bf08d14..bd581d7 100644 --- a/TaikoWebUI/Pages/DaniDojo.razor.cs +++ b/TaikoWebUI/Pages/DaniDojo.razor.cs @@ -45,7 +45,7 @@ public partial class DaniDojo { return danClearState switch { - DanClearState.NotClear => Localizer["Failed"], + DanClearState.NotClear => Localizer["Not Cleared"], DanClearState.RedNormalClear => Localizer["Red"], DanClearState.RedFullComboClear => Localizer["Red Full Combo"], DanClearState.RedPerfectClear => Localizer["Red Donderful Combo"], diff --git a/TaikoWebUI/Pages/Dialogs/ChooseTitleDialog.razor b/TaikoWebUI/Pages/Dialogs/ChooseTitleDialog.razor index 848da04..c2742d1 100644 --- a/TaikoWebUI/Pages/Dialogs/ChooseTitleDialog.razor +++ b/TaikoWebUI/Pages/Dialogs/ChooseTitleDialog.razor @@ -1,6 +1,7 @@ @using TaikoWebUI.Shared.Models @using System.Collections.Immutable @inject IGameDataService GameDataService +@inject IJSRuntime Js @@ -38,7 +39,7 @@ } - + @Localizer["Selected Title:"] @selectedTitle?.TitleName @@ -103,13 +104,15 @@ title.TitleName.Contains(searchString, StringComparison.InvariantCultureIgnoreCase); } - private void Submit() + private async Task Submit() { if (selectedTitle is not null) { UserSetting.Title = selectedTitle.TitleName; UserSetting.TitlePlateId = selectedTitle.TitleRarity; } + + await Js.InvokeVoidAsync("updateTitleText", UserSetting.Title); MudDialog.Close(DialogResult.Ok(true)); } diff --git a/TaikoWebUI/Pages/HighScores.razor b/TaikoWebUI/Pages/HighScores.razor index f2301c0..32fb4ca 100644 --- a/TaikoWebUI/Pages/HighScores.razor +++ b/TaikoWebUI/Pages/HighScores.razor @@ -3,7 +3,7 @@ @inject LoginService LoginService @inject IJSRuntime JSRuntime @inject NavigationManager NavigationManager -@inject Blazored.LocalStorage.ILocalStorageService localStorage +@inject Blazored.LocalStorage.ILocalStorageService LocalStorage @using TaikoWebUI.Utilities; @page "/Users/{baid:int}/HighScores" @@ -39,80 +39,171 @@ { @if (difficulty is not Difficulty.None) { - @if (songBestDataMap.TryGetValue(difficulty, out var value)) { - - - - - - -
- -
-
-
-
- - - - - @GameDataService.GetMusicStarLevel(@context.Item.SongId, difficulty) - - - - - - - @ScoreUtils.GetGenreTitle(context.Item.Genre) - - - - - - - @(ScoreUtils.GetCrownText(context.Item.BestCrown)) - - - - - @if (context.Item.BestScoreRank is not ScoreRank.None) - { - @(ScoreUtils.GetRankText(context.Item.BestScoreRank)) - } - - - - - - - - - - - - -
+ // Rows per page 25 + + + + @Localizer["Song Name"] + + + + @Localizer["Level"] + + + + + @Localizer["Genre"] + + + + + @Localizer["Best Score"] + + + + + @Localizer["Best Crown"] + + + + + @Localizer["Best Rank"] + + + + + @Localizer["Good"] + + + + + @Localizer["OK"] + + + + + @Localizer["Bad"] + + + + + @Localizer["Drumroll"] + + + + + @Localizer["MAX Combo"] + + + + + @Localizer["Last Played"] + + + + + @Localizer["Total Plays"] + + + + + @Localizer["Total Clears"] + + + + + @Localizer["Total Full Combos"] + + + + + @Localizer["Total Donderful Combos"] + + + + + + + +
+ +
+
+
+ + + + @GameDataService.GetMusicStarLevel(context.SongId, difficulty) + + + + + @ScoreUtils.GetGenreTitle(context.Genre) + + + + @context.BestScore + + + @(ScoreUtils.GetCrownText(context.BestCrown)) + + + @if (context.BestScoreRank is not ScoreRank.None) + { + @(ScoreUtils.GetRankText(context.BestScoreRank)) + } + + + @context.GoodCount + + + @context.OkCount + + + @context.MissCount + + + @context.DrumrollCount + + + @context.ComboCount + + + @context.LastPlayTime + + + @context.PlayCount + + + @context.ClearCount + + + @context.FullComboCount + + + @context.PerfectCount + +
- + -
+ } else { diff --git a/TaikoWebUI/Pages/PlayHistory.razor b/TaikoWebUI/Pages/PlayHistory.razor index 002fd21..e5daf98 100644 --- a/TaikoWebUI/Pages/PlayHistory.razor +++ b/TaikoWebUI/Pages/PlayHistory.razor @@ -135,7 +135,7 @@ - + diff --git a/TaikoWebUI/Pages/SongList.razor b/TaikoWebUI/Pages/SongList.razor index 4a1e0b1..a80e86b 100644 --- a/TaikoWebUI/Pages/SongList.razor +++ b/TaikoWebUI/Pages/SongList.razor @@ -138,7 +138,7 @@ } - +