diff --git a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Components/Lyrics/ViewOnlyLyric.cs b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Components/Lyrics/ViewOnlyLyric.cs new file mode 100644 index 000000000..78a129814 --- /dev/null +++ b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/Components/Lyrics/ViewOnlyLyric.cs @@ -0,0 +1,24 @@ +// Copyright (c) andy840119 . 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 CreateLayers(Lyric lyric) + { + return new BaseLayer[] + { + new TimeTagLayer(lyric), + }; + } + } +} diff --git a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/LyricList/Rows/EditLyricDetailRow.cs b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/LyricList/Rows/EditLyricDetailRow.cs index 4d2f4969f..9c24d7c6a 100644 --- a/osu.Game.Rulesets.Karaoke/Edit/Lyrics/LyricList/Rows/EditLyricDetailRow.cs +++ b/osu.Game.Rulesets.Karaoke/Edit/Lyrics/LyricList/Rows/EditLyricDetailRow.cs @@ -27,7 +27,7 @@ protected override Drawable CreateTimingInfo(Lyric lyric) protected override Drawable CreateContent(Lyric lyric) { - return new EditableLyric(lyric) + return new ViewOnlyLyric(lyric) { Anchor = Anchor.BottomLeft, Origin = Anchor.BottomLeft,