mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
Shorten fade duration
This commit is contained in:
parent
1eab4e179d
commit
c4f4f32db8
@ -18,6 +18,8 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
{
|
||||
public class ShowMoreButton : OsuHoverContainer
|
||||
{
|
||||
private const float fade_duration = 200;
|
||||
|
||||
private readonly Box background;
|
||||
private readonly LoadingAnimation loading;
|
||||
private readonly FillFlowContainer content;
|
||||
@ -38,13 +40,13 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
|
||||
if (value)
|
||||
{
|
||||
loading.FadeIn(FADE_DURATION, Easing.OutQuint);
|
||||
content.FadeOut(FADE_DURATION, Easing.OutQuint);
|
||||
loading.FadeIn(fade_duration, Easing.OutQuint);
|
||||
content.FadeOut(fade_duration, Easing.OutQuint);
|
||||
}
|
||||
else
|
||||
{
|
||||
loading.FadeOut(FADE_DURATION, Easing.OutQuint);
|
||||
content.FadeIn(FADE_DURATION, Easing.OutQuint);
|
||||
loading.FadeOut(fade_duration, Easing.OutQuint);
|
||||
content.FadeIn(fade_duration, Easing.OutQuint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user