mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Shorten fade duration
This commit is contained in:
@ -18,6 +18,8 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
{
|
{
|
||||||
public class ShowMoreButton : OsuHoverContainer
|
public class ShowMoreButton : OsuHoverContainer
|
||||||
{
|
{
|
||||||
|
private const float fade_duration = 200;
|
||||||
|
|
||||||
private readonly Box background;
|
private readonly Box background;
|
||||||
private readonly LoadingAnimation loading;
|
private readonly LoadingAnimation loading;
|
||||||
private readonly FillFlowContainer content;
|
private readonly FillFlowContainer content;
|
||||||
@ -38,13 +40,13 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
|
|
||||||
if (value)
|
if (value)
|
||||||
{
|
{
|
||||||
loading.FadeIn(FADE_DURATION, Easing.OutQuint);
|
loading.FadeIn(fade_duration, Easing.OutQuint);
|
||||||
content.FadeOut(FADE_DURATION, Easing.OutQuint);
|
content.FadeOut(fade_duration, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
loading.FadeOut(FADE_DURATION, Easing.OutQuint);
|
loading.FadeOut(fade_duration, Easing.OutQuint);
|
||||||
content.FadeIn(FADE_DURATION, Easing.OutQuint);
|
content.FadeIn(fade_duration, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user