1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

using FadeTo() instead of FadeIn()/FadeOut()

This commit is contained in:
andy840119 2019-06-15 13:28:03 +08:00
parent 9114c8dee7
commit 1a73178260

View File

@ -52,17 +52,12 @@ namespace osu.Game.Overlays.Mods
buttons = modContainers.OfType<ModButton>().ToArray();
var expand = value.Any();
if (expand)
{
headerLabel.FadeIn(200);
Show();
}
else
{
headerLabel.FadeOut(200);
Hide();
}
headerLabel.FadeTo(expand ? 1 : 0, 200);
}
}