mirror of
https://github.com/ppy/osu
synced 2024-12-13 10:28:17 +00:00
Always play 'swoosh' sample when transitioning back to logo
This commit is contained in:
parent
f69c2ea39b
commit
8a47f05b16
@ -267,7 +267,6 @@ namespace osu.Game.Screens.Menu
|
||||
// Samples are explicitly played here in response to user interaction and not when transitioning due to idle.
|
||||
StopSamplePlayback();
|
||||
sampleBackToLogo?.Play();
|
||||
sampleLogoSwoosh?.Play();
|
||||
|
||||
return true;
|
||||
|
||||
@ -362,6 +361,9 @@ namespace osu.Game.Screens.Menu
|
||||
logo?.MoveTo(new Vector2(0.5f), 800, Easing.OutExpo);
|
||||
logo?.ScaleTo(1, 800, Easing.OutExpo);
|
||||
}, buttonArea.Alpha * 150);
|
||||
|
||||
if (lastState == ButtonSystemState.TopLevel)
|
||||
sampleLogoSwoosh?.Play();
|
||||
break;
|
||||
|
||||
case ButtonSystemState.TopLevel:
|
||||
|
Loading…
Reference in New Issue
Block a user