Skip to content

Commit

Permalink
Rename the enum.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Jul 5, 2024
1 parent 472735d commit 7dd04c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected override GenericEditorScreen<KaraokeBeatmapEditorScreenMode> GenerateS
{
KaraokeBeatmapEditorScreenMode.Lyric => new LyricEditorScreen(),
KaraokeBeatmapEditorScreenMode.Singer => new SingerScreen(),
KaraokeBeatmapEditorScreenMode.Translate => new TranslationScreen(),
KaraokeBeatmapEditorScreenMode.Translation => new TranslationScreen(),
KaraokeBeatmapEditorScreenMode.Page => new PageScreen(),
_ => throw new InvalidOperationException("Editor menu bar switched to an unsupported mode"),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public enum KaraokeBeatmapEditorScreenMode
[Description("Singer")]
Singer,

[Description("Translate")]
Translate,
[Description("Translation")]
Translation,

[Description("Page")]
Page,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public partial class TranslationScreen : BeatmapEditorRoundedScreen
private readonly LyricTranslationChangeHandler lyricTranslationChangeHandler;

public TranslationScreen()
: base(KaraokeBeatmapEditorScreenMode.Translate)
: base(KaraokeBeatmapEditorScreenMode.Translation)
{
AddInternal(beatmapLanguagesChangeHandler = new BeatmapLanguagesChangeHandler());
AddInternal(lyricTranslationChangeHandler = new LyricTranslationChangeHandler());
Expand Down

0 comments on commit 7dd04c2

Please sign in to comment.