mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 01:42:59 +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;
|
ButtonsContainer.Children = modContainers;
|
||||||
buttons = modContainers.OfType<ModButton>().ToArray();
|
buttons = modContainers.OfType<ModButton>().ToArray();
|
||||||
|
|
||||||
var expand = value.Any();
|
if (value.Any())
|
||||||
headerLabel.FadeTo(expand ? 1 : 0, 200);
|
{
|
||||||
this.FadeTo(expand ? 1 : 0);
|
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