From 8586506fbf58ac5e1517b616f976d012cb66d201 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Fri, 13 Sep 2024 22:57:34 +0800 Subject: [PATCH] Change the button naming. --- ...eateNewLanguageButton.cs => CreateNewTranslationButton.cs} | 4 ++-- .../{RemoveLanguageButton.cs => RemoveTranslationButton.cs} | 4 ++-- .../Edit/Beatmaps/Translations/TranslationEditSection.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/{CreateNewLanguageButton.cs => CreateNewTranslationButton.cs} (93%) rename osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/{RemoveLanguageButton.cs => RemoveTranslationButton.cs} (93%) diff --git a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/CreateNewLanguageButton.cs b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/CreateNewTranslationButton.cs similarity index 93% rename from osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/CreateNewLanguageButton.cs rename to osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/CreateNewTranslationButton.cs index c9042342e..204217967 100644 --- a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/CreateNewLanguageButton.cs +++ b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/CreateNewTranslationButton.cs @@ -15,14 +15,14 @@ namespace osu.Game.Rulesets.Karaoke.Screens.Edit.Beatmaps.Translations.Components; -public partial class CreateNewLanguageButton : IconButton, IHasPopover +public partial class CreateNewTranslationButton : IconButton, IHasPopover { [Resolved] private IBeatmapLanguagesChangeHandler beatmapLanguagesChangeHandler { get; set; } = null!; private readonly Bindable currentLanguage = new(); - public CreateNewLanguageButton() + public CreateNewTranslationButton() { Icon = FontAwesome.Solid.Plus; Action = this.ShowPopover; diff --git a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/RemoveLanguageButton.cs b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/RemoveTranslationButton.cs similarity index 93% rename from osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/RemoveLanguageButton.cs rename to osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/RemoveTranslationButton.cs index 9efc98e0b..2cd1277e2 100644 --- a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/RemoveLanguageButton.cs +++ b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/Components/RemoveTranslationButton.cs @@ -11,7 +11,7 @@ namespace osu.Game.Rulesets.Karaoke.Screens.Edit.Beatmaps.Translations.Components; -public partial class RemoveLanguageButton : IconButton +public partial class RemoveTranslationButton : IconButton { [Resolved] private IBeatmapLanguagesChangeHandler beatmapLanguagesChangeHandler { get; set; } = null!; @@ -22,7 +22,7 @@ public partial class RemoveLanguageButton : IconButton [Resolved] private IBindable currentLanguage { get; set; } = null!; - public RemoveLanguageButton() + public RemoveTranslationButton() { Icon = FontAwesome.Solid.Trash; Action = () => diff --git a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/TranslationEditSection.cs b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/TranslationEditSection.cs index 2c25d126a..1990738a1 100644 --- a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/TranslationEditSection.cs +++ b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Translations/TranslationEditSection.cs @@ -102,12 +102,12 @@ public TranslationEditSection() RelativeSizeAxes = Axes.X, }, Empty(), - new CreateNewLanguageButton + new CreateNewTranslationButton { Y = 5, }, Empty(), - new RemoveLanguageButton + new RemoveTranslationButton { Y = 5, },