1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 22:17:20 +08:00

Adjust preview time display to not conflict with bookmarks

This commit is contained in:
Dean Herbert 2025-02-28 14:05:49 +09:00
parent 7f99e60cfd
commit e1723ec1bb
No known key found for this signature in database
2 changed files with 11 additions and 7 deletions

View File

@ -3,6 +3,7 @@
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Localisation;
using osu.Game.Extensions;
@ -36,6 +37,10 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
: base(time)
{
Alpha = 0.8f;
// Display as a small circle on the middle line as to not clash with other displays.
RelativeSizeAxes = Axes.None;
Height = Width = 5;
}
[BackgroundDependencyLoader]

View File

@ -52,13 +52,6 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary
},
}
},
new PreviewTimePart
{
Anchor = Anchor.Centre,
Origin = Anchor.TopCentre,
RelativeSizeAxes = Axes.Both,
Height = 0.4f,
},
new BreakPart
{
Anchor = Anchor.Centre,
@ -85,6 +78,12 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary
RelativeSizeAxes = Axes.Both,
Height = 0.4f
},
new PreviewTimePart
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Both,
},
new MarkerPart { RelativeSizeAxes = Axes.Both },
};
}