1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 14:52:57 +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.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;
@ -70,20 +71,27 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{ {
AddRange(new Drawable[] AddRange(new Drawable[]
{ {
waveform = new WaveformGraph new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Colour = colours.Blue.Opacity(0.2f), Depth = float.MaxValue,
LowColour = colours.BlueLighter, Children = new Drawable[]
MidColour = colours.BlueDark, {
HighColour = colours.BlueDarker, waveform = new WaveformGraph
Depth = float.MaxValue {
RelativeSizeAxes = Axes.Both,
Colour = colours.Blue.Opacity(0.2f),
LowColour = colours.BlueLighter,
MidColour = colours.BlueDark,
HighColour = colours.BlueDarker,
},
controlPoints = new ControlPointPart
{
RelativeSizeAxes = Axes.Both
},
ticks = new TimelineTickDisplay(),
}
}, },
controlPoints = new ControlPointPart
{
RelativeSizeAxes = Axes.Both
},
ticks = new TimelineTickDisplay(),
}); });
// We don't want the centre marker to scroll // We don't want the centre marker to scroll