1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:43:22 +08:00

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