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