From 2ee0f3f5f6606818dc297e7ce20bb8f2177a4bc4 Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Tue, 11 Jul 2017 02:11:08 -0300 Subject: [PATCH] Update with framework changes. --- .../Tests/TestCaseMedalOverlay.cs | 4 +--- osu.Game/Overlays/MedalOverlay.cs | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/osu.Desktop.VisualTests/Tests/TestCaseMedalOverlay.cs b/osu.Desktop.VisualTests/Tests/TestCaseMedalOverlay.cs index ac983277a4..e00b2beac4 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseMedalOverlay.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseMedalOverlay.cs @@ -11,10 +11,8 @@ namespace osu.Desktop.VisualTests.Tests { public override string Description => @"medal get!"; - public override void Reset() + public TestCaseMedalOverlay() { - base.Reset(); - Add(new MedalOverlay(new Medal { Name = @"Animations", diff --git a/osu.Game/Overlays/MedalOverlay.cs b/osu.Game/Overlays/MedalOverlay.cs index 617a5f7d0b..cc6f23ccdb 100644 --- a/osu.Game/Overlays/MedalOverlay.cs +++ b/osu.Game/Overlays/MedalOverlay.cs @@ -199,23 +199,25 @@ namespace osu.Game.Overlays getSample.Play(); Delay(200, true); - innerSpin.Transforms.Add(new TransformRotation + var innerRotate = new TransformRotation { - StartValue = 0, EndValue = 359, StartTime = Clock.TimeInfo.Current, EndTime = Clock.TimeInfo.Current + 20000, - LoopCount = -1, - }); + }; - outterSpin.Transforms.Add(new TransformRotation + innerRotate.Loop(0); + innerSpin.Transforms.Add(innerRotate); + + var outerRotate = new TransformRotation { - StartValue = 0, EndValue = 359, StartTime = Clock.TimeInfo.Current, EndTime = Clock.TimeInfo.Current + 40000, - LoopCount = -1, - }); + }; + + outerRotate.Loop(0); + outterSpin.Transforms.Add(outerRotate); disc.FadeIn(duration1); outterSpin.FadeTo(0.1f, duration1 * 2);