mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:43:20 +08:00
DragBox -> DragLayer
This commit is contained in:
parent
d40ccbd70a
commit
4f19059e55
@ -14,9 +14,9 @@ using OpenTK.Graphics;
|
|||||||
namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A box that handles and displays drag selection for a collection of <see cref="HitObjectMask"/>s.
|
/// A layer that handles and displays drag selection for a collection of <see cref="HitObjectMask"/>s.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DragBox : CompositeDrawable
|
public class DragLayer : CompositeDrawable
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Invoked when the drag selection has finished.
|
/// Invoked when the drag selection has finished.
|
||||||
@ -28,10 +28,10 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
|||||||
private Drawable box;
|
private Drawable box;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a new <see cref="DragBox"/>.
|
/// Creates a new <see cref="DragLayer"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="maskContainer">The selectable <see cref="HitObjectMask"/>s.</param>
|
/// <param name="maskContainer">The selectable <see cref="HitObjectMask"/>s.</param>
|
||||||
public DragBox(MaskContainer maskContainer)
|
public DragLayer(MaskContainer maskContainer)
|
||||||
{
|
{
|
||||||
this.maskContainer = maskContainer;
|
this.maskContainer = maskContainer;
|
||||||
|
|
@ -35,7 +35,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
|||||||
|
|
||||||
selectionBox = composer.CreateSelectionBox(maskContainer);
|
selectionBox = composer.CreateSelectionBox(maskContainer);
|
||||||
|
|
||||||
var dragBox = new DragBox(maskContainer);
|
var dragBox = new DragLayer(maskContainer);
|
||||||
dragBox.DragEnd += () => selectionBox.UpdateVisibility();
|
dragBox.DragEnd += () => selectionBox.UpdateVisibility();
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
|
Loading…
Reference in New Issue
Block a user