1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 19:52:55 +08:00

Hides mod display when no mods are active to fix issue of invisible margin

This commit is contained in:
Viktor Rosvall 2019-12-31 12:21:55 +01:00
parent f40ebc83ca
commit 8695e57f62
2 changed files with 7 additions and 2 deletions

View File

@ -91,7 +91,7 @@ namespace osu.Game.Screens.Select
SpriteText = new OsuSpriteText
{
Size = new Vector2(100 - SHEAR_WIDTH, 50),
Shear = -SHEAR,
Shear = SHEAR,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
}

View File

@ -46,7 +46,7 @@ namespace osu.Game.Screens.Select
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Font = OsuFont.GetFont(weight: FontWeight.Bold),
Margin = new MarginPadding { Right = 6 }
// Margin = new MarginPadding { Right = 6 }
});
}
@ -80,6 +80,11 @@ namespace osu.Game.Screens.Select
MultiplierText.FadeColour(lowMultiplierColour, 200);
else
MultiplierText.FadeColour(Color4.White, 200);
if (Current.Value?.Count > 0)
modDisplay.FadeIn(0);
else
modDisplay.FadeOut(0);
}
private class FooterModDisplay : ModDisplay