1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00
This commit is contained in:
EVAST9919 2017-10-10 21:03:35 +03:00
parent 15160f5116
commit 28a594179f

View File

@ -246,8 +246,6 @@ namespace osu.Game.Screens.Menu
public void Start() public void Start()
{ {
int duration;
mediumRing.ResizeTo(medium_ring_size, medium_ring_resize_duration, Easing.InExpo); mediumRing.ResizeTo(medium_ring_size, medium_ring_resize_duration, Easing.InExpo);
using (BeginDelayedSequence(200, true)) using (BeginDelayedSequence(200, true))
@ -259,7 +257,7 @@ namespace osu.Game.Screens.Menu
smallRing.Foreground.Delay(small_ring_resize_duration).ResizeTo(1, small_ring_fade_duration, Easing.OutQuad); smallRing.Foreground.Delay(small_ring_resize_duration).ResizeTo(1, small_ring_fade_duration, Easing.OutQuad);
} }
duration = bar_animation_duration - bar_resize_delay; int duration = bar_animation_duration - bar_resize_delay;
using (BeginDelayedSequence(medium_ring_resize_duration, true)) using (BeginDelayedSequence(medium_ring_resize_duration, true))
{ {
mediumRing.Foreground.ResizeTo(1, medium_ring_fade_duration, Easing.OutQuad); mediumRing.Foreground.ResizeTo(1, medium_ring_fade_duration, Easing.OutQuad);
@ -299,28 +297,28 @@ namespace osu.Game.Screens.Menu
duration = full_animation_duration - purple_circle_animation_start_time; duration = full_animation_duration - purple_circle_animation_start_time;
using (BeginDelayedSequence(purple_circle_animation_start_time, true)) using (BeginDelayedSequence(purple_circle_animation_start_time, true))
{ {
purpleCircle.MoveToY((colored_circle_size - 2) / 2, duration, Easing.InOutQuad); purpleCircle.MoveToY((colored_circle_size - 2) / 2.0f, duration, Easing.InOutQuad);
purpleCircle.Delay(colored_circle_rotation_delay).RotateTo(-180, duration - colored_circle_rotation_delay, Easing.OutQuad); purpleCircle.Delay(colored_circle_rotation_delay).RotateTo(-180, duration - colored_circle_rotation_delay, Easing.OutQuad);
purpleCircle.ResizeTo(colored_circle_size - 2, duration, Easing.InOutQuad); purpleCircle.ResizeTo(colored_circle_size - 2, duration, Easing.InOutQuad);
duration -= colored_circles_appear_delay; duration -= colored_circles_appear_delay;
using (BeginDelayedSequence(colored_circles_appear_delay, true)) using (BeginDelayedSequence(colored_circles_appear_delay, true))
{ {
yellowCircle.MoveToY(-(colored_circle_size - 2) / 2, duration, Easing.InOutQuad); yellowCircle.MoveToY(-(colored_circle_size - 2) / 2.0f, duration, Easing.InOutQuad);
yellowCircle.Delay(colored_circle_rotation_delay).RotateTo(-180, duration - colored_circle_rotation_delay, Easing.OutQuad); yellowCircle.Delay(colored_circle_rotation_delay).RotateTo(-180, duration - colored_circle_rotation_delay, Easing.OutQuad);
yellowCircle.ResizeTo(colored_circle_size - 2, duration, Easing.InOutQuad); yellowCircle.ResizeTo(colored_circle_size - 2, duration, Easing.InOutQuad);
duration -= colored_circles_appear_delay; duration -= colored_circles_appear_delay;
using (BeginDelayedSequence(colored_circles_appear_delay, true)) using (BeginDelayedSequence(colored_circles_appear_delay, true))
{ {
blueCircle.MoveToX(-(colored_circle_size - 2) / 2, duration, Easing.InOutQuad); blueCircle.MoveToX(-(colored_circle_size - 2) / 2.0f, duration, Easing.InOutQuad);
blueCircle.Delay(colored_circle_rotation_delay).RotateTo(-180, duration - colored_circle_rotation_delay, Easing.OutQuad); blueCircle.Delay(colored_circle_rotation_delay).RotateTo(-180, duration - colored_circle_rotation_delay, Easing.OutQuad);
blueCircle.ResizeTo(colored_circle_size - 2, duration, Easing.InOutQuad); blueCircle.ResizeTo(colored_circle_size - 2, duration, Easing.InOutQuad);
duration -= colored_circles_appear_delay; duration -= colored_circles_appear_delay;
using (BeginDelayedSequence(colored_circles_appear_delay, true)) using (BeginDelayedSequence(colored_circles_appear_delay, true))
{ {
pinkCircle.MoveToX(colored_circle_size / 2, duration, Easing.InOutQuad); pinkCircle.MoveToX(colored_circle_size / 2.0f, duration, Easing.InOutQuad);
pinkCircle.Delay(colored_circle_rotation_delay).RotateTo(-180, duration - colored_circle_rotation_delay, Easing.OutQuad); pinkCircle.Delay(colored_circle_rotation_delay).RotateTo(-180, duration - colored_circle_rotation_delay, Easing.OutQuad);
pinkCircle.ResizeTo(colored_circle_size, duration, Easing.InOutQuad); pinkCircle.ResizeTo(colored_circle_size, duration, Easing.InOutQuad);
} }