mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
Handle sub screen OnExiting
logic on main screen
This commit is contained in:
parent
5b9bf54f1f
commit
00b4cf1829
@ -240,13 +240,15 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
|
||||
public override bool OnExiting(IScreen next)
|
||||
{
|
||||
if (screenStack.CurrentScreen?.OnExiting(next) == true)
|
||||
return true;
|
||||
|
||||
RoomManager.PartRoom();
|
||||
|
||||
waves.Hide();
|
||||
|
||||
this.Delay(WaveContainer.DISAPPEAR_DURATION).FadeOut();
|
||||
|
||||
screenStack.CurrentScreen?.OnExiting(next);
|
||||
base.OnExiting(next);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user