mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 02:42:54 +08:00
Merge branch 'master' into fix-unit-test-on-linux
This commit is contained in:
commit
c398ea764a
@ -1 +1 @@
|
||||
Subproject commit 768a775b688d7a008d8933275b48ed0d2d491f12
|
||||
Subproject commit 6f7528255c5d6cde72f1e92de539983bc4bce502
|
@ -213,6 +213,13 @@ namespace osu.Game.Screens.Menu
|
||||
backButton.ContractStyle = 0;
|
||||
settingsButton.ContractStyle = 0;
|
||||
|
||||
bool fromInitial = lastState == MenuState.Initial;
|
||||
|
||||
if (state == MenuState.TopLevel)
|
||||
buttonArea.Flush(true);
|
||||
|
||||
using (buttonArea.BeginDelayedSequence(fromInitial ? 150 : 0, true))
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case MenuState.Exit:
|
||||
@ -222,9 +229,11 @@ namespace osu.Game.Screens.Menu
|
||||
buttonAreaBackground.ScaleTo(Vector2.One, 500, EasingTypes.Out);
|
||||
buttonArea.FadeOut(300);
|
||||
|
||||
osuLogo.Delay(150);
|
||||
using (osuLogo.BeginDelayedSequence(150))
|
||||
{
|
||||
osuLogo.MoveTo(Vector2.Zero, 800, EasingTypes.OutExpo);
|
||||
osuLogo.ScaleTo(1, 800, EasingTypes.OutExpo);
|
||||
}
|
||||
|
||||
foreach (Button b in buttonsTopLevel)
|
||||
b.State = ButtonState.Contracted;
|
||||
@ -241,23 +250,17 @@ namespace osu.Game.Screens.Menu
|
||||
sampleBack?.Play();
|
||||
break;
|
||||
case MenuState.TopLevel:
|
||||
buttonArea.Flush(true);
|
||||
|
||||
buttonAreaBackground.ScaleTo(Vector2.One, 200, EasingTypes.Out);
|
||||
|
||||
osuLogo.ClearTransforms();
|
||||
osuLogo.MoveTo(buttonFlow.DrawPosition, 200, EasingTypes.In);
|
||||
osuLogo.ScaleTo(0.5f, 200, EasingTypes.In);
|
||||
|
||||
buttonArea.FadeIn(300);
|
||||
|
||||
if (lastState == MenuState.Initial)
|
||||
{
|
||||
buttonArea.Delay(150, true);
|
||||
|
||||
if (osuLogo.Scale.X > 0.5f)
|
||||
if (fromInitial && osuLogo.Scale.X > 0.5f)
|
||||
using (osuLogo.BeginDelayedSequence(200, true))
|
||||
osuLogo.Impact();
|
||||
}
|
||||
|
||||
Scheduler.AddDelayed(() => toolbar?.Show(), 150);
|
||||
|
||||
@ -292,9 +295,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
backButton.State = state == MenuState.Play ? ButtonState.Expanded : ButtonState.Contracted;
|
||||
settingsButton.State = state == MenuState.TopLevel ? ButtonState.Expanded : ButtonState.Contracted;
|
||||
|
||||
if (lastState == MenuState.Initial)
|
||||
buttonArea.DelayReset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user