Fix elements appearing in front of hitobjects

This commit is contained in:
Dean Herbert
2020-10-01 18:54:59 +09:00
parent 00a19b4879
commit 70d475be1f

View File

@ -8,6 +8,7 @@ using osu.Framework.Bindables;
using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Audio; using osu.Framework.Graphics.Audio;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input.Events; using osu.Framework.Input.Events;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
using osu.Game.Graphics; using osu.Game.Graphics;
@ -69,6 +70,12 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
private void load(IBindable<WorkingBeatmap> beatmap, OsuColour colours) private void load(IBindable<WorkingBeatmap> beatmap, OsuColour colours)
{ {
AddRange(new Drawable[] AddRange(new Drawable[]
{
new Container
{
RelativeSizeAxes = Axes.Both,
Depth = float.MaxValue,
Children = new Drawable[]
{ {
waveform = new WaveformGraph waveform = new WaveformGraph
{ {
@ -77,13 +84,14 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
LowColour = colours.BlueLighter, LowColour = colours.BlueLighter,
MidColour = colours.BlueDark, MidColour = colours.BlueDark,
HighColour = colours.BlueDarker, HighColour = colours.BlueDarker,
Depth = float.MaxValue
}, },
controlPoints = new ControlPointPart controlPoints = new ControlPointPart
{ {
RelativeSizeAxes = Axes.Both RelativeSizeAxes = Axes.Both
}, },
ticks = new TimelineTickDisplay(), ticks = new TimelineTickDisplay(),
}
},
}); });
// We don't want the centre marker to scroll // We don't want the centre marker to scroll