Fix incorrect syntax

This commit is contained in:
Dean Herbert 2018-05-22 00:01:40 +09:00
parent 841336a181
commit 3d9d40448d
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
{
icon.ScaleTo(1.5f);
text.FadeIn(fade_duration);
progress.FillTo(progress.Current, 1, progress_duration).OnComplete(cp => ExitAction());
progress.FillTo(1, progress_duration).OnComplete(cp => ExitAction());
return base.OnMouseDown(state, args);
}
@ -95,7 +95,7 @@ protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
{
icon.ScaleTo(1f);
Scheduler.AddDelayed(() => text.FadeOut(fade_duration), text_display_time);
progress.FillTo(progress.Current, 0, progress_duration / 4).OnComplete(cp => progress.Current.SetDefault());
progress.FillTo(0, progress_duration / 4f).OnComplete(cp => progress.Current.SetDefault());
return base.OnMouseUp(state, args);
}