1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-28 04:03:06 +08:00

Fix ModOverlay not including "UNRANKED" text in size

This commit is contained in:
Dean Herbert 2020-10-15 17:10:35 +09:00
parent b210147c2e
commit 74c031cfbb

View File

@ -48,6 +48,12 @@ namespace osu.Game.Screens.Play.HUD
{ {
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;
Child = new FillFlowContainer
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
Children = new Drawable[] Children = new Drawable[]
{ {
iconsContainer = new ReverseChildIDFillFlowContainer<ModIcon> iconsContainer = new ReverseChildIDFillFlowContainer<ModIcon>
@ -59,11 +65,12 @@ namespace osu.Game.Screens.Play.HUD
}, },
unrankedText = new OsuSpriteText unrankedText = new OsuSpriteText
{ {
Anchor = Anchor.BottomCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Text = @"/ UNRANKED /", Text = @"/ UNRANKED /",
Font = OsuFont.Numeric.With(size: 12) Font = OsuFont.Numeric.With(size: 12)
} }
},
}; };
Current.ValueChanged += mods => Current.ValueChanged += mods =>