1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 03:31:23 +08:00

Merge pull request #32149 from peppy/preview-time-display

Adjust preview time display to not conflict with bookmarks
This commit is contained in:
Dan Balasescu
2025-02-28 16:14:44 +09:00
committed by GitHub
Unverified
2 changed files with 11 additions and 7 deletions
@@ -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]
@@ -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 },
};
}