1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 01:45:19 +08:00

Move sliderbody hs to middle of first span

This commit is contained in:
OliBomby 2023-08-16 21:15:47 +02:00
parent cc4e11a5ac
commit 02b7c8f27b

View File

@ -105,17 +105,17 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
},
}
},
sampleComponents = new Container
{
RelativeSizeAxes = Axes.Both,
},
samplePointPiece = new SamplePointPiece(Item)
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.TopCentre,
X = Item is IHasRepeats ? 30 : 0,
RelativePositionAxes = Axes.X,
AlternativeColor = Item is IHasRepeats
},
sampleComponents = new Container
{
RelativeSizeAxes = Axes.Both,
},
});
if (item is IHasDuration)
@ -262,6 +262,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
Origin = Anchor.TopCentre
});
}
samplePointPiece.X = 1f / (repeats.RepeatCount + 1) / 2;
}
protected override bool ShouldBeConsideredForInput(Drawable child) => true;