1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 22:35:23 +08:00

Adjust for readability

This commit is contained in:
Dean Herbert 2019-06-20 01:39:54 +09:00
parent 2773cfba42
commit 08cf8dd299

View File

@ -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();
}
} }
} }