-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the view-only lyric for able to show the lyric with time-tag.
- Loading branch information
1 parent
f62b51a
commit cac7d2d
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
osu.Game.Rulesets.Karaoke/Edit/Lyrics/Components/Lyrics/ViewOnlyLyric.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System.Collections.Generic; | ||
using osu.Game.Rulesets.Karaoke.Objects; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Edit.Lyrics.Components.Lyrics | ||
{ | ||
public class ViewOnlyLyric : InteractableLyric | ||
{ | ||
public ViewOnlyLyric(Lyric lyric) | ||
: base(lyric) | ||
{ | ||
} | ||
|
||
protected override IEnumerable<BaseLayer> CreateLayers(Lyric lyric) | ||
{ | ||
return new BaseLayer[] | ||
{ | ||
new TimeTagLayer(lyric), | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters