1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-28 09:37:23 +08:00

Merge pull request #12138 from smoogipoo/mania-legacy-key-fade-delay

This commit is contained in:
Bartłomiej Dach 2021-03-22 19:09:00 +01:00 committed by GitHub
commit 779d2ed5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,8 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
{ {
public class LegacyHitExplosion : LegacyManiaColumnElement, IHitExplosion public class LegacyHitExplosion : LegacyManiaColumnElement, IHitExplosion
{ {
public const double FADE_IN_DURATION = 80;
private readonly IBindable<ScrollingDirection> direction = new Bindable<ScrollingDirection>(); private readonly IBindable<ScrollingDirection> direction = new Bindable<ScrollingDirection>();
private Drawable explosion; private Drawable explosion;
@ -72,7 +74,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
(explosion as IFramedAnimation)?.GotoFrame(0); (explosion as IFramedAnimation)?.GotoFrame(0);
explosion?.FadeInFromZero(80) explosion?.FadeInFromZero(FADE_IN_DURATION)
.Then().FadeOut(120); .Then().FadeOut(120);
} }
} }

View File

@ -101,8 +101,8 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
{ {
if (action == column.Action.Value) if (action == column.Action.Value)
{ {
upSprite.FadeTo(1); upSprite.Delay(LegacyHitExplosion.FADE_IN_DURATION).FadeTo(1);
downSprite.FadeTo(0); downSprite.Delay(LegacyHitExplosion.FADE_IN_DURATION).FadeTo(0);
} }
} }
} }