mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Remove unnecessary bool storage
Also delay show slightly for better user experience.
This commit is contained in:
parent
0ec642d826
commit
f398f134e1
@ -39,8 +39,6 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
private ButtonSystem buttons;
|
private ButtonSystem buttons;
|
||||||
|
|
||||||
private bool loginPrompted;
|
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private GameHost host { get; set; }
|
private GameHost host { get; set; }
|
||||||
|
|
||||||
@ -151,16 +149,6 @@ namespace osu.Game.Screens.Menu
|
|||||||
logo.FadeColour(Color4.White, 100, Easing.OutQuint);
|
logo.FadeColour(Color4.White, 100, Easing.OutQuint);
|
||||||
logo.FadeIn(100, Easing.OutQuint);
|
logo.FadeIn(100, Easing.OutQuint);
|
||||||
|
|
||||||
logo.Action += () =>
|
|
||||||
{
|
|
||||||
if (!api.IsLoggedIn && !loginPrompted)
|
|
||||||
login?.Show();
|
|
||||||
|
|
||||||
loginPrompted = true;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
|
|
||||||
if (resuming)
|
if (resuming)
|
||||||
{
|
{
|
||||||
buttons.State = ButtonSystemState.TopLevel;
|
buttons.State = ButtonSystemState.TopLevel;
|
||||||
@ -170,6 +158,14 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
sideFlashes.Delay(FADE_IN_DURATION).FadeIn(64, Easing.InQuint);
|
sideFlashes.Delay(FADE_IN_DURATION).FadeIn(64, Easing.InQuint);
|
||||||
}
|
}
|
||||||
|
else if (!api.IsLoggedIn)
|
||||||
|
{
|
||||||
|
logo.Action += () =>
|
||||||
|
{
|
||||||
|
Scheduler.AddDelayed(() => login?.Show(), 500);
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LogoSuspending(OsuLogo logo)
|
protected override void LogoSuspending(OsuLogo logo)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user