mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Merge pull request #29231 from peppy/timeline-break-behind-objects
Show breaks behind objects in timeline
This commit is contained in:
commit
7bf96ce49a
@ -69,19 +69,24 @@ namespace osu.Game.Screens.Edit.Compose
|
|||||||
if (ruleset == null || composer == null)
|
if (ruleset == null || composer == null)
|
||||||
return base.CreateTimelineContent();
|
return base.CreateTimelineContent();
|
||||||
|
|
||||||
|
TimelineBreakDisplay breakDisplay = new TimelineBreakDisplay
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Anchor = Anchor.CentreLeft,
|
||||||
|
Origin = Anchor.CentreLeft,
|
||||||
|
Height = 0.75f,
|
||||||
|
};
|
||||||
|
|
||||||
return wrapSkinnableContent(new Container
|
return wrapSkinnableContent(new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
|
// We want to display this below hitobjects to better expose placement objects visually.
|
||||||
|
// It needs to be above the blueprint container to handle drags on breaks though.
|
||||||
|
breakDisplay.CreateProxy(),
|
||||||
new TimelineBlueprintContainer(composer),
|
new TimelineBlueprintContainer(composer),
|
||||||
new TimelineBreakDisplay
|
breakDisplay
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
Anchor = Anchor.CentreLeft,
|
|
||||||
Origin = Anchor.CentreLeft,
|
|
||||||
Height = 0.75f,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user