mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Update with framework changes.
This commit is contained in:
parent
202e3ca530
commit
2ee0f3f5f6
@ -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",
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user