diff --git a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/PageEditorEditMode.cs b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/PageEditorEditMode.cs index 0f0eecd0a..dae735a3d 100644 --- a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/PageEditorEditMode.cs +++ b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/PageEditorEditMode.cs @@ -5,6 +5,8 @@ namespace osu.Game.Rulesets.Karaoke.Screens.Edit.Beatmaps.Pages; public enum PageEditorEditMode { + Generate, + Edit, Verify diff --git a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/Settings/PageEditorEditModeSection.cs b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/Settings/PageEditorEditModeSection.cs index 72591228a..913af5c32 100644 --- a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/Settings/PageEditorEditModeSection.cs +++ b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/Settings/PageEditorEditModeSection.cs @@ -33,6 +33,7 @@ protected override OverlayColourScheme CreateColourScheme() protected override Selection CreateSelection(PageEditorEditMode mode) => mode switch { + PageEditorEditMode.Generate => new Selection(), PageEditorEditMode.Edit => new Selection(), PageEditorEditMode.Verify => new PageEditorVerifySelection(), _ => throw new ArgumentOutOfRangeException(nameof(mode), mode, null) @@ -41,7 +42,8 @@ protected override Selection CreateSelection(PageEditorEditMode mode) => protected override LocalisableString GetSelectionText(PageEditorEditMode mode) => mode switch { - PageEditorEditMode.Edit => "Generate", + PageEditorEditMode.Generate => "Generate", + PageEditorEditMode.Edit => "Edit", PageEditorEditMode.Verify => "Verify", _ => throw new ArgumentOutOfRangeException(nameof(mode), mode, null) }; @@ -49,7 +51,8 @@ protected override LocalisableString GetSelectionText(PageEditorEditMode mode) = protected override Color4 GetSelectionColour(OsuColour colours, PageEditorEditMode mode, bool active) => mode switch { - PageEditorEditMode.Edit => active ? colours.Blue : colours.BlueDarker, + PageEditorEditMode.Generate => active ? colours.Blue : colours.BlueDarker, + PageEditorEditMode.Edit => active ? colours.Red : colours.RedDarker, PageEditorEditMode.Verify => active ? colours.Yellow : colours.YellowDarker, _ => throw new ArgumentOutOfRangeException(nameof(mode), mode, null) }; @@ -57,7 +60,8 @@ protected override Color4 GetSelectionColour(OsuColour colours, PageEditorEditMo protected override DescriptionFormat GetSelectionDescription(PageEditorEditMode mode) => mode switch { - PageEditorEditMode.Edit => "Edit the page.", + PageEditorEditMode.Generate => "Generate the pages by lyric.", + PageEditorEditMode.Edit => "Batch edit page in here.", PageEditorEditMode.Verify => "Check if have any page issues.", _ => throw new ArgumentOutOfRangeException(nameof(mode), mode, null) }; diff --git a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/Settings/PageSettings.cs b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/Settings/PageSettings.cs index bbde5f742..a2a940578 100644 --- a/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/Settings/PageSettings.cs +++ b/osu.Game.Rulesets.Karaoke/Screens/Edit/Beatmaps/Pages/Settings/PageSettings.cs @@ -29,6 +29,11 @@ private void load(OverlayColourProvider colourProvider, IPageStateProvider pageS protected override IReadOnlyList CreateSections() => bindableMode.Value switch { + PageEditorEditMode.Generate => new Drawable[] + { + new PageEditorEditModeSection(), + new PageAutoGenerateSection(), + }, PageEditorEditMode.Edit => new Drawable[] { new PageEditorEditModeSection(),