mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Decrease transition duration of extended difficulty list during hide
This commit is contained in:
@ -138,9 +138,18 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
|||||||
// This avoids depth issues where a hovered (scaled) card to the right of another card would be beneath the card to the left.
|
// This avoids depth issues where a hovered (scaled) card to the right of another card would be beneath the card to the left.
|
||||||
this.ScaleTo(Expanded.Value ? 1.03f : 1, 500, Easing.OutQuint);
|
this.ScaleTo(Expanded.Value ? 1.03f : 1, 500, Easing.OutQuint);
|
||||||
|
|
||||||
background.FadeTo(Expanded.Value ? 1 : 0, BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
if (Expanded.Value)
|
||||||
dropdownContent.FadeTo(Expanded.Value ? 1 : 0, BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
{
|
||||||
borderContainer.FadeTo(Expanded.Value ? 1 : 0, BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
background.FadeIn(BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
||||||
|
dropdownContent.FadeIn(BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
||||||
|
borderContainer.FadeIn(BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
background.FadeOut(BeatmapCard.TRANSITION_DURATION / 3f, Easing.OutQuint);
|
||||||
|
dropdownContent.FadeOut(BeatmapCard.TRANSITION_DURATION / 3f, Easing.OutQuint);
|
||||||
|
borderContainer.FadeOut(BeatmapCard.TRANSITION_DURATION / 3f, Easing.OutQuint);
|
||||||
|
}
|
||||||
|
|
||||||
content.TweenEdgeEffectTo(new EdgeEffectParameters
|
content.TweenEdgeEffectTo(new EdgeEffectParameters
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user