Skip to content

Commit

Permalink
Add the playback control into the recording and adjustment mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Oct 16, 2022
1 parent 8f50725 commit f86ba00
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using osu.Game.Rulesets.Karaoke.Edit.Lyrics.Compose.Toolbar;
using osu.Game.Rulesets.Karaoke.Edit.Lyrics.Compose.Toolbar.Carets;
using osu.Game.Rulesets.Karaoke.Edit.Lyrics.Compose.Toolbar.Panels;
using osu.Game.Rulesets.Karaoke.Edit.Lyrics.Compose.Toolbar.Playback;
using osu.Game.Rulesets.Karaoke.Edit.Lyrics.Compose.Toolbar.TimeTags;
using osu.Game.Rulesets.Karaoke.Edit.Lyrics.States.Modes;
using osu.Game.Rulesets.Karaoke.Edit.Utils;
Expand Down Expand Up @@ -131,6 +132,8 @@ static IEnumerable<Drawable> createItemsForEditTimeTagMode(TimeTagEditMode timeT
},
TimeTagEditMode.Recording => new Drawable[]
{
new PlaybackSwitchButton(),
new Separator(),
new MoveToFirstIndexButton(),
new MoveToPreviousIndexButton(),
new MoveToNextIndexButton(),
Expand All @@ -139,7 +142,10 @@ static IEnumerable<Drawable> createItemsForEditTimeTagMode(TimeTagEditMode timeT
new ClearTimeTagTimeButton(),
new ClearAllTimeTagTimeButton(),
},
TimeTagEditMode.Adjust => Array.Empty<Drawable>(),
TimeTagEditMode.Adjust => new Drawable[]
{
new PlaybackSwitchButton(),
},
_ => throw new ArgumentOutOfRangeException(nameof(timeTagEditMode), timeTagEditMode, null)
};

Expand Down

0 comments on commit f86ba00

Please sign in to comment.