Fix grade layout

This commit is contained in:
Andrei Zavatski 2019-07-09 08:09:31 +03:00
parent 5d81445454
commit 8d46d4a28e

View File

@ -39,19 +39,30 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
Spacing = new Vector2(10, 0), Spacing = new Vector2(10, 0),
Children = new Drawable[] Children = new Drawable[]
{ {
rankText = new OsuSpriteText new FillFlowContainer
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
Text = $"#{position.ToString()}", AutoSizeAxes = Axes.Both,
Font = OsuFont.GetFont(size: 30, weight: FontWeight.Bold, italics: true) Direction = FillDirection.Vertical,
}, Spacing = new Vector2(0, 3),
rank = new UpdateableRank(ScoreRank.D) Children = new Drawable[]
{ {
Anchor = Anchor.Centre, rankText = new OsuSpriteText
Origin = Anchor.Centre, {
Size = new Vector2(40), Anchor = Anchor.Centre,
FillMode = FillMode.Fit, Origin = Anchor.Centre,
Text = $"#{position.ToString()}",
Font = OsuFont.GetFont(size: 30, weight: FontWeight.Bold, italics: true)
},
rank = new UpdateableRank(ScoreRank.D)
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(40),
FillMode = FillMode.Fit,
},
}
}, },
avatar = new UpdateableAvatar(hideImmediately: true) avatar = new UpdateableAvatar(hideImmediately: true)
{ {