mirror of
https://github.com/ppy/osu.git
synced 2025-02-04 23:43:00 +08:00
Merge pull request #26608 from mouzedrift/taiko-drum-fade-fix
Fix taiko legacy input drum animation fade not matching osu!stable
This commit is contained in:
commit
1cde18b895
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
@ -153,16 +152,12 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
|||||||
|
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
const float alpha_amount = 1;
|
|
||||||
|
|
||||||
const float down_time = 80;
|
const float down_time = 80;
|
||||||
const float up_time = 50;
|
const float up_time = 50;
|
||||||
|
|
||||||
target.Animate(
|
target
|
||||||
t => t.FadeTo(Math.Min(target.Alpha + alpha_amount, 1), down_time)
|
.FadeTo(1, down_time * (1 - target.Alpha), Easing.Out)
|
||||||
).Then(
|
.Delay(100).FadeOut(up_time);
|
||||||
t => t.FadeOut(up_time)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user