mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 11:43:22 +08:00
Reposition the real time digital clock to the centre when shown solely
This commit is contained in:
parent
88241d5b95
commit
cc3c3b05f0
@ -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).
|
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);
|
gameTime.FadeTo(showRuntime ? 1 : 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user