1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 00:20:41 +08:00

using FadeTo instead of show/hide

headerLabel.FadeTo() is still remain because effect can be visible when expand== true
This commit is contained in:
andy840119
2019-06-16 13:27:01 +09:00
Unverified
parent 1a73178260
commit 84b4e877f8
+1 -5
View File
@@ -52,12 +52,8 @@ namespace osu.Game.Overlays.Mods
buttons = modContainers.OfType<ModButton>().ToArray();
var expand = value.Any();
if (expand)
Show();
else
Hide();
headerLabel.FadeTo(expand ? 1 : 0, 200);
this.FadeTo(expand ? 1 : 0);
}
}