1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 09:23:46 +08:00

Use GetEndTime() instead of StartTime

Companion to
https://github.com/ppy/osu/pull/18103/commits/246479bf34c725d886742017099f9d509e58b2f7
This commit is contained in:
Salman Ahmed
2022-05-06 18:51:34 +03:00
Unverified
parent 112496204d
commit d78f1d158d
@@ -131,7 +131,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
if (editorClock == null)
return;
float distanceForCurrentTime = snapProvider.DurationToDistance(referenceObject, editorClock.CurrentTime - referenceObject.StartTime);
float distanceForCurrentTime = snapProvider.DurationToDistance(referenceObject, editorClock.CurrentTime - referenceObject.GetEndTime());
float timeBasedAlpha = Math.Clamp(1 - Math.Abs(distanceForCurrentTime - Size.X / 2) / 30, 0, 1);
Colour = baseColour.Opacity(Math.Max(baseColour.A, timeBasedAlpha));