From cc3c3b05f007e919bede4bc32f1be477db840737 Mon Sep 17 00:00:00 2001 From: CloneWith Date: Thu, 12 Dec 2024 21:10:46 +0800 Subject: [PATCH] Reposition the real time digital clock to the centre when shown solely --- osu.Game/Overlays/Toolbar/DigitalClockDisplay.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Overlays/Toolbar/DigitalClockDisplay.cs b/osu.Game/Overlays/Toolbar/DigitalClockDisplay.cs index ada2f6ff86..9c5cb0901c 100644 --- a/osu.Game/Overlays/Toolbar/DigitalClockDisplay.cs +++ b/osu.Game/Overlays/Toolbar/DigitalClockDisplay.cs @@ -78,6 +78,9 @@ namespace osu.Game.Overlays.Toolbar { Width = showRuntime || !use24HourDisplay ? 66 : 45; // Allows for space for game time up to 99 days (in the padding area since this is quite rare). + realTime.Anchor = showRuntime ? Anchor.TopLeft : Anchor.Centre; + realTime.Origin = showRuntime ? Anchor.TopLeft : Anchor.Centre; + gameTime.FadeTo(showRuntime ? 1 : 0); } }