mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +08:00
FinishCapture -> FinishDrag from Handles
This commit is contained in:
parent
09c51df2bd
commit
5493493f82
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
|
|||||||
updateDragRectangle(r);
|
updateDragRectangle(r);
|
||||||
BeginCapture();
|
BeginCapture();
|
||||||
},
|
},
|
||||||
FinishCapture = FinishCapture
|
FinishDrag = FinishCapture
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user