mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 19:53:23 +08:00
Adjust for readability
This commit is contained in:
parent
2773cfba42
commit
08cf8dd299
@ -51,9 +51,17 @@ namespace osu.Game.Overlays.Mods
|
||||
ButtonsContainer.Children = modContainers;
|
||||
buttons = modContainers.OfType<ModButton>().ToArray();
|
||||
|
||||
var expand = value.Any();
|
||||
headerLabel.FadeTo(expand ? 1 : 0, 200);
|
||||
this.FadeTo(expand ? 1 : 0);
|
||||
if (value.Any())
|
||||
{
|
||||
headerLabel.FadeIn(200);
|
||||
this.FadeIn(200);
|
||||
}
|
||||
else
|
||||
{
|
||||
// transition here looks weird as mods instantly disappear.
|
||||
headerLabel.Hide();
|
||||
Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user