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:
parent
9114c8dee7
commit
1a73178260
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user