-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add with lyric editor screen to collect generate lyric editor and inj…
…ection logic.
- Loading branch information
1 parent
dbc9a02
commit 0f6a397
Showing
5 changed files
with
67 additions
and
62 deletions.
There are no files selected for viewing
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
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
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
31 changes: 31 additions & 0 deletions
31
osu.Game.Rulesets.Karaoke/Edit/ImportLyric/ImportLyricSubScreenWithLyricEditor.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,31 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osu.Framework.Allocation; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Timing; | ||
using osu.Game.Rulesets.Karaoke.Edit.Lyrics; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Edit.ImportLyric | ||
{ | ||
public abstract class ImportLyricSubScreenWithLyricEditor : ImportLyricSubScreenWithTopNavigation | ||
{ | ||
protected LyricEditor LyricEditor { get; private set; } | ||
|
||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent) | ||
{ | ||
var dependencies = new DependencyContainer(base.CreateChildDependencies(parent)); | ||
var clock = new DecoupleableInterpolatingFramedClock { IsCoupled = false }; | ||
dependencies.CacheAs<IAdjustableClock>(clock); | ||
dependencies.CacheAs<IFrameBasedClock>(clock); | ||
|
||
return dependencies; | ||
} | ||
|
||
protected override Drawable CreateContent() | ||
=> LyricEditor = new LyricEditor | ||
{ | ||
RelativeSizeAxes = Axes.Both, | ||
}; | ||
} | ||
} |
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