1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 23:12:56 +08:00

Fix date display

This commit is contained in:
Dean Herbert 2018-11-11 09:05:36 +09:00
parent 21bbb68636
commit 9c18f7a25a

View File

@ -71,7 +71,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.CentreLeft Origin = Anchor.CentreLeft
}, },
new RoundDisplay(pairing.Grouping) new RoundDisplay(pairing)
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Height = 0.25f, Height = 0.25f,
@ -83,7 +83,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
private class RoundDisplay : CompositeDrawable private class RoundDisplay : CompositeDrawable
{ {
public RoundDisplay(TournamentGrouping group) public RoundDisplay(MatchPairing pairing)
{ {
var col = OsuColour.Gray(0.33f); var col = OsuColour.Gray(0.33f);
@ -112,7 +112,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Colour = col, Colour = col,
Text = group?.Name.Value ?? "Unknown Grouping", Text = pairing.Grouping.Value?.Name.Value ?? "Unknown Grouping",
Font = "Aquatico-Light", Font = "Aquatico-Light",
Spacing = new Vector2(10, 0), Spacing = new Vector2(10, 0),
TextSize = 50, TextSize = 50,
@ -123,7 +123,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Font = "Aquatico-Light", Font = "Aquatico-Light",
Colour = col, Colour = col,
Text = (group?.StartDate.Value ?? DateTimeOffset.Now).ToString("dd MMMM HH:mm UTC"), Text = pairing.Date.Value.ToUniversalTime().ToString("dd MMMM HH:mm UTC"),
TextSize = 20, TextSize = 20,
}, },
} }