1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +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(); buttons = modContainers.OfType<ModButton>().ToArray();
var expand = value.Any(); var expand = value.Any();
if (expand) if (expand)
{
headerLabel.FadeIn(200);
Show(); Show();
}
else else
{
headerLabel.FadeOut(200);
Hide(); Hide();
}
headerLabel.FadeTo(expand ? 1 : 0, 200);
} }
} }