mirror of
https://github.com/osukey/osukey.git
synced 2025-05-20 21:17:32 +09:00
Update CircularProgress.FillTo calls
This commit is contained in:
parent
785cf306ec
commit
86430da6d6
@ -17,6 +17,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
public class QuitButton : FillFlowContainer
|
public class QuitButton : FillFlowContainer
|
||||||
{
|
{
|
||||||
private readonly Button button;
|
private readonly Button button;
|
||||||
|
|
||||||
public Action ExitAction
|
public Action ExitAction
|
||||||
{
|
{
|
||||||
get => button.ExitAction;
|
get => button.ExitAction;
|
||||||
@ -85,7 +86,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
{
|
{
|
||||||
icon.ScaleTo(1.5f);
|
icon.ScaleTo(1.5f);
|
||||||
text.FadeIn(fade_duration);
|
text.FadeIn(fade_duration);
|
||||||
progress.FillTo(1, progress_duration).OnComplete(cp => ExitAction());
|
progress.FillTo(progress.Current, 1, progress_duration).OnComplete(cp => ExitAction());
|
||||||
|
|
||||||
return base.OnMouseDown(state, args);
|
return base.OnMouseDown(state, args);
|
||||||
}
|
}
|
||||||
@ -94,7 +95,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
{
|
{
|
||||||
icon.ScaleTo(1f);
|
icon.ScaleTo(1f);
|
||||||
Scheduler.AddDelayed(() => text.FadeOut(fade_duration), text_display_time);
|
Scheduler.AddDelayed(() => text.FadeOut(fade_duration), text_display_time);
|
||||||
progress.FillTo(0, progress_duration / 4).OnComplete(cp => progress.Current.SetDefault());
|
progress.FillTo(progress.Current, 0, progress_duration / 4).OnComplete(cp => progress.Current.SetDefault());
|
||||||
|
|
||||||
return base.OnMouseUp(state, args);
|
return base.OnMouseUp(state, args);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user