From a2fc339a45768c3fa6ff175699c81849ed01fdd9 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 1 Sep 2016 15:01:13 +0900 Subject: [PATCH] Update Transforms to new style. --- osu.Game/Graphics/UserInterface/TextBox.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/TextBox.cs b/osu.Game/Graphics/UserInterface/TextBox.cs index d59a2c532b..4ccf3c8295 100644 --- a/osu.Game/Graphics/UserInterface/TextBox.cs +++ b/osu.Game/Graphics/UserInterface/TextBox.cs @@ -139,10 +139,14 @@ namespace osu.Game.Graphics.UserInterface { cursor.FadeTo(0.5f, 200, EasingTypes.Out); cursor.FadeColour(Color4.White, 200, EasingTypes.Out); - cursor.Transformations.Add(new Transformation(TransformationType.Fade, 0.5f, 0.2f, Time + 200, Time + 200 + /*(OsuGame.Audio.BeatSyncing ? (int)OsuGame.Audio.BeatLength : */500) + cursor.Transformations.Add(new TransformAlpha(Clock) { + StartValue = 0.5f, + EndValue = 0.2f, + StartTime = Time, + EndTime = Time + 500, Easing = EasingTypes.InOutSine, - Loop = true + LoopCount = -1, }); } }