mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Extract class for clipboard contents for DI purposes
This commit is contained in:
@ -28,7 +28,6 @@ namespace osu.Game.Screens.Edit.Compose
|
||||
[Resolved]
|
||||
private EditorClock clock { get; set; }
|
||||
|
||||
[Resolved(Name = nameof(Editor.Clipboard))]
|
||||
private Bindable<string> clipboard { get; set; }
|
||||
|
||||
private HitObjectComposer composer;
|
||||
@ -77,6 +76,12 @@ namespace osu.Game.Screens.Edit.Compose
|
||||
return new EditorSkinProvidingContainer(EditorBeatmap).WithChild(content);
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(EditorClipboard clipboard)
|
||||
{
|
||||
this.clipboard = clipboard.Content.GetBoundCopy();
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
Reference in New Issue
Block a user