mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:52:54 +08:00
Hides mod display when no mods are active to fix issue of invisible margin
This commit is contained in:
parent
f40ebc83ca
commit
8695e57f62
@ -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,
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user