From 674e2a43955719ace56bd9d2cbd9aa2bc8f61aad Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Fri, 23 Jun 2017 21:59:22 +0800 Subject: [PATCH] Align placeholder. --- osu.Game/Overlays/Profile/ProfileHeader.cs | 4 ++-- osu.Game/Overlays/Profile/ProfileSection.cs | 24 +++++++++++---------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/osu.Game/Overlays/Profile/ProfileHeader.cs b/osu.Game/Overlays/Profile/ProfileHeader.cs index 193fa2dfda..a85486b0eb 100644 --- a/osu.Game/Overlays/Profile/ProfileHeader.cs +++ b/osu.Game/Overlays/Profile/ProfileHeader.cs @@ -321,11 +321,11 @@ namespace osu.Game.Overlays.Profile if (user.Age != null) { - infoTextLeft.AddText($"{user.Age} years old", boldItalic); + infoTextLeft.AddText($"{user.Age} years old ", boldItalic); } if (user.Country != null) { - infoTextLeft.AddText(" from "); + infoTextLeft.AddText("from "); infoTextLeft.AddText(user.Country.FullName, boldItalic); } infoTextLeft.NewParagraph(); diff --git a/osu.Game/Overlays/Profile/ProfileSection.cs b/osu.Game/Overlays/Profile/ProfileSection.cs index 63c5263a72..5bbdccbbf0 100644 --- a/osu.Game/Overlays/Profile/ProfileSection.cs +++ b/osu.Game/Overlays/Profile/ProfileSection.cs @@ -42,19 +42,10 @@ namespace osu.Game.Overlays.Profile Direction = FillDirection.Vertical, AutoSizeAxes = Axes.Y, RelativeSizeAxes = Axes.X, - Margin = new MarginPadding + Padding = new MarginPadding { Horizontal = UserProfileOverlay.CONTENT_X_MARGIN, - Bottom = 200 - }, - Children = new Drawable[] - { - new TextFlowContainer - { - AutoSizeAxes = Axes.Y, - RelativeSizeAxes = Axes.X, - Text = "Coming soon!" - } + Bottom = 20 } }, new Box @@ -65,6 +56,17 @@ namespace osu.Game.Overlays.Profile EdgeSmoothness = new Vector2(1) } }; + + // placeholder + Add(new OsuSpriteText + { + Text = @"Coming soon!", + TextSize = 36, + Font = @"Exo2.0-RegularItalic", + Anchor = Anchor.Centre, + Origin = Anchor.Centre, + Margin = new MarginPadding { Bottom = 200 } + }); } } }