1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

Convert ReceiveMouseInputAt override to lambda syntax, and make Tracking property private set

This commit is contained in:
Shane Woolcock 2017-08-20 14:00:53 +09:30
parent 51af233d66
commit 71ddbd22a1

View File

@ -98,17 +98,14 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
return base.OnMouseMove(state);
}
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos)
{
// If the current time is between the start and end of the slider, we should track mouse input regardless of the cursor position.
return canCurrentlyTrack || base.ReceiveMouseInputAt(screenSpacePos);
}
// If the current time is between the start and end of the slider, we should track mouse input regardless of the cursor position.
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => canCurrentlyTrack || base.ReceiveMouseInputAt(screenSpacePos);
private bool tracking;
public bool Tracking
{
get { return tracking; }
set
private set
{
if (value == tracking) return;