Skip to content

Commit

Permalink
Change the button naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Sep 13, 2024
1 parent d17803d commit 8586506
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<CultureInfo?> currentLanguage = new();

public CreateNewLanguageButton()
public CreateNewTranslationButton()
{
Icon = FontAwesome.Solid.Plus;
Action = this.ShowPopover;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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!;
Expand All @@ -22,7 +22,7 @@ public partial class RemoveLanguageButton : IconButton
[Resolved]
private IBindable<CultureInfo> currentLanguage { get; set; } = null!;

public RemoveLanguageButton()
public RemoveTranslationButton()
{
Icon = FontAwesome.Solid.Trash;
Action = () =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ public TranslationEditSection()
RelativeSizeAxes = Axes.X,
},
Empty(),
new CreateNewLanguageButton
new CreateNewTranslationButton
{
Y = 5,
},
Empty(),
new RemoveLanguageButton
new RemoveTranslationButton
{
Y = 5,
},
Expand Down

0 comments on commit 8586506

Please sign in to comment.