mirror of
https://github.com/ppy/osu
synced 2025-02-02 11:21:59 +00: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:
parent
1a73178260
commit
84b4e877f8
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user