1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 00:42:55 +08:00

FinishCapture -> FinishDrag from Handles

This commit is contained in:
smoogipoo 2017-12-18 19:24:41 +09:00
parent 09c51df2bd
commit 5493493f82
3 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
/// <summary> /// <summary>
/// Invoked when this <see cref="Handle"/> has finished updates to the drag rectangle. /// Invoked when this <see cref="Handle"/> has finished updates to the drag rectangle.
/// </summary> /// </summary>
public Action FinishCapture; public Action FinishDrag;
private Color4 normalColour; private Color4 normalColour;
private Color4 hoverColour; private Color4 hoverColour;
@ -87,7 +87,7 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
protected override bool OnDragEnd(InputState state) protected override bool OnDragEnd(InputState state)
{ {
FinishCapture(); FinishDrag();
return true; return true;
} }

View File

@ -28,7 +28,7 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
/// <summary> /// <summary>
/// Invoked when a <see cref="Handle"/> has finished updates to the drag rectangle. /// Invoked when a <see cref="Handle"/> has finished updates to the drag rectangle.
/// </summary> /// </summary>
public Action FinishCapture; public Action FinishDrag;
public HandleContainer() public HandleContainer()
{ {
@ -85,7 +85,7 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
{ {
m.GetDragRectangle = () => GetDragRectangle(); m.GetDragRectangle = () => GetDragRectangle();
m.UpdateDragRectangle = r => UpdateDragRectangle(r); m.UpdateDragRectangle = r => UpdateDragRectangle(r);
m.FinishCapture = () => FinishCapture(); m.FinishDrag = () => FinishDrag();
}); });
} }
} }

View File

@ -75,7 +75,7 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
updateDragRectangle(r); updateDragRectangle(r);
BeginCapture(); BeginCapture();
}, },
FinishCapture = FinishCapture FinishDrag = FinishCapture
} }
}; };
} }