mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:13:22 +08:00
Rename method
This commit is contained in:
parent
068217557e
commit
b7a719de71
@ -102,7 +102,7 @@ namespace osu.Game.Rulesets.Catch.Edit
|
|||||||
protected override ComposeBlueprintContainer CreateBlueprintContainer() => new CatchBlueprintContainer(this);
|
protected override ComposeBlueprintContainer CreateBlueprintContainer() => new CatchBlueprintContainer(this);
|
||||||
|
|
||||||
[CanBeNull]
|
[CanBeNull]
|
||||||
private PalpableCatchHitObject getPreviousHitObject(double time)
|
private PalpableCatchHitObject getLastSnappableHitObject(double time)
|
||||||
{
|
{
|
||||||
var hitObject = EditorBeatmap.HitObjects.OfType<CatchHitObject>().LastOrDefault(h => h.GetEndTime() < time && !(h is BananaShower));
|
var hitObject = EditorBeatmap.HitObjects.OfType<CatchHitObject>().LastOrDefault(h => h.GetEndTime() < time && !(h is BananaShower));
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ namespace osu.Game.Rulesets.Catch.Edit
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
double minTime = EditorBeatmap.SelectedHitObjects.Min(hitObject => hitObject.StartTime);
|
double minTime = EditorBeatmap.SelectedHitObjects.Min(hitObject => hitObject.StartTime);
|
||||||
return getPreviousHitObject(minTime);
|
return getLastSnappableHitObject(minTime);
|
||||||
|
|
||||||
case FruitCompositionTool _:
|
case FruitCompositionTool _:
|
||||||
case JuiceStreamCompositionTool _:
|
case JuiceStreamCompositionTool _:
|
||||||
@ -143,7 +143,7 @@ namespace osu.Game.Rulesets.Catch.Edit
|
|||||||
}
|
}
|
||||||
|
|
||||||
double timeAtCursor = ((CatchPlayfield)Playfield).TimeAtScreenSpacePosition(inputManager.CurrentState.Mouse.Position);
|
double timeAtCursor = ((CatchPlayfield)Playfield).TimeAtScreenSpacePosition(inputManager.CurrentState.Mouse.Position);
|
||||||
return getPreviousHitObject(timeAtCursor);
|
return getLastSnappableHitObject(timeAtCursor);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user