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:
parent
cc4e11a5ac
commit
02b7c8f27b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user