Split out classes and simplify construction of buttons

This commit is contained in:
Dean Herbert
2020-10-01 16:34:34 +09:00
parent db1ad4243e
commit 1aff263419
7 changed files with 387 additions and 380 deletions

View File

@ -43,7 +43,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
private OsuSpriteText selectionDetailsText;
protected ComposeSelectionBox SelectionBox { get; private set; }
protected SelectionBox SelectionBox { get; private set; }
[Resolved(CanBeNull = true)]
protected EditorBeatmap EditorBeatmap { get; private set; }
@ -94,8 +94,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
};
}
public ComposeSelectionBox CreateSelectionBox()
=> new ComposeSelectionBox
public SelectionBox CreateSelectionBox()
=> new SelectionBox
{
OperationStarted = OnOperationBegan,
OperationEnded = OnOperationEnded,