mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
SelectionBoxDragHandleDisplay -> SelectionBoxDragHandleContainer
This commit is contained in:
parent
c58ef4230d
commit
7390a12e4b
@ -92,7 +92,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
}
|
||||
}
|
||||
|
||||
private SelectionBoxDragHandleDisplay dragHandles;
|
||||
private SelectionBoxDragHandleContainer dragHandles;
|
||||
private FillFlowContainer buttons;
|
||||
|
||||
public const float BORDER_RADIUS = 3;
|
||||
@ -161,7 +161,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
},
|
||||
}
|
||||
},
|
||||
dragHandles = new SelectionBoxDragHandleDisplay
|
||||
dragHandles = new SelectionBoxDragHandleContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
// ensures that the centres of all drag handles line up with the middle of the selection box border.
|
||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
/// <summary>
|
||||
/// Represents a display composite containing and managing the visibility state of the selection box's drag handles.
|
||||
/// </summary>
|
||||
public class SelectionBoxDragHandleDisplay : CompositeDrawable
|
||||
public class SelectionBoxDragHandleContainer : CompositeDrawable
|
||||
{
|
||||
private Container<SelectionBoxScaleHandle> scaleHandles;
|
||||
private Container<SelectionBoxRotationHandle> rotationHandles;
|
||||
@ -75,7 +75,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
if (activeHandle?.InOperation == true || activeHandle?.IsHovered == true)
|
||||
return;
|
||||
|
||||
displayedRotationHandle?.FadeOut(SelectionBoxControl.TRANSFORM_DURATION, Easing.OutQuint);
|
||||
displayedRotationHandle?.Hide();
|
||||
displayedRotationHandle = null;
|
||||
|
||||
activeHandle = allDragHandles.SingleOrDefault(h => h.InOperation);
|
||||
@ -84,7 +84,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
if (activeHandle != null)
|
||||
{
|
||||
displayedRotationHandle = getCorrespondingRotationHandle(activeHandle, rotationHandles);
|
||||
displayedRotationHandle?.FadeIn(SelectionBoxControl.TRANSFORM_DURATION, Easing.OutQuint);
|
||||
displayedRotationHandle?.Show();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user