mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Remove need for ScaleDragHandle class
This commit is contained in:
@ -208,9 +208,10 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
});
|
||||
}
|
||||
|
||||
private ScaleDragHandle createDragHandle(Anchor anchor) =>
|
||||
new ScaleDragHandle(anchor)
|
||||
private DragHandle createDragHandle(Anchor anchor) =>
|
||||
new DragHandle
|
||||
{
|
||||
Anchor = anchor,
|
||||
HandleDrag = e => OnScale?.Invoke(e.Delta, anchor),
|
||||
OperationStarted = operationStarted,
|
||||
OperationEnded = operationEnded
|
||||
@ -230,14 +231,6 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
OperationStarted?.Invoke();
|
||||
}
|
||||
|
||||
private class ScaleDragHandle : DragHandle
|
||||
{
|
||||
public ScaleDragHandle(Anchor anchor)
|
||||
{
|
||||
Anchor = anchor;
|
||||
}
|
||||
}
|
||||
|
||||
private sealed class DragHandleButton : DragHandle, IHasTooltip
|
||||
{
|
||||
private SpriteIcon icon;
|
||||
|
Reference in New Issue
Block a user