mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Display the centre marker above the waveform
Gives it a bit more visibility. This is where it was meant to sit, but didn't consider using a proxy drawable to make it work previously.
This commit is contained in:
@ -74,13 +74,18 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(IBindable<WorkingBeatmap> beatmap, OsuColour colours, OsuConfigManager config)
|
private void load(IBindable<WorkingBeatmap> beatmap, OsuColour colours, OsuConfigManager config)
|
||||||
{
|
{
|
||||||
|
CentreMarker centreMarker;
|
||||||
|
|
||||||
|
// We don't want the centre marker to scroll
|
||||||
|
AddInternal(centreMarker = new CentreMarker());
|
||||||
|
|
||||||
AddRange(new Drawable[]
|
AddRange(new Drawable[]
|
||||||
{
|
{
|
||||||
new Container
|
new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Depth = float.MaxValue,
|
Depth = float.MaxValue,
|
||||||
Children = new Drawable[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
waveform = new WaveformGraph
|
waveform = new WaveformGraph
|
||||||
{
|
{
|
||||||
@ -90,6 +95,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
MidColour = colours.BlueDark,
|
MidColour = colours.BlueDark,
|
||||||
HighColour = colours.BlueDarker,
|
HighColour = colours.BlueDarker,
|
||||||
},
|
},
|
||||||
|
centreMarker.CreateProxy(),
|
||||||
ticks = new TimelineTickDisplay(),
|
ticks = new TimelineTickDisplay(),
|
||||||
controlPoints = new TimelineControlPointDisplay(),
|
controlPoints = new TimelineControlPointDisplay(),
|
||||||
new Box
|
new Box
|
||||||
@ -104,9 +110,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// We don't want the centre marker to scroll
|
|
||||||
AddInternal(new CentreMarker { Depth = float.MaxValue });
|
|
||||||
|
|
||||||
waveformOpacity = config.GetBindable<float>(OsuSetting.EditorWaveformOpacity);
|
waveformOpacity = config.GetBindable<float>(OsuSetting.EditorWaveformOpacity);
|
||||||
waveformOpacity.BindValueChanged(_ => updateWaveformOpacity(), true);
|
waveformOpacity.BindValueChanged(_ => updateWaveformOpacity(), true);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user