mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +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
|
||||
{
|
||||
/// <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>
|
||||
public class DragBox : CompositeDrawable
|
||||
public class DragLayer : CompositeDrawable
|
||||
{
|
||||
/// <summary>
|
||||
/// Invoked when the drag selection has finished.
|
||||
@ -28,10 +28,10 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
||||
private Drawable box;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="DragBox"/>.
|
||||
/// Creates a new <see cref="DragLayer"/>.
|
||||
/// </summary>
|
||||
/// <param name="maskContainer">The selectable <see cref="HitObjectMask"/>s.</param>
|
||||
public DragBox(MaskContainer maskContainer)
|
||||
public DragLayer(MaskContainer maskContainer)
|
||||
{
|
||||
this.maskContainer = maskContainer;
|
||||
|
@ -35,7 +35,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
||||
|
||||
selectionBox = composer.CreateSelectionBox(maskContainer);
|
||||
|
||||
var dragBox = new DragBox(maskContainer);
|
||||
var dragBox = new DragLayer(maskContainer);
|
||||
dragBox.DragEnd += () => selectionBox.UpdateVisibility();
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
|
Loading…
Reference in New Issue
Block a user