mirror of
https://github.com/osukey/osukey.git
synced 2025-05-13 17:47:18 +09: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)
|
public override bool OnExiting(IScreen next)
|
||||||
{
|
{
|
||||||
|
if (screenStack.CurrentScreen?.OnExiting(next) == true)
|
||||||
|
return true;
|
||||||
|
|
||||||
RoomManager.PartRoom();
|
RoomManager.PartRoom();
|
||||||
|
|
||||||
waves.Hide();
|
waves.Hide();
|
||||||
|
|
||||||
this.Delay(WaveContainer.DISAPPEAR_DURATION).FadeOut();
|
this.Delay(WaveContainer.DISAPPEAR_DURATION).FadeOut();
|
||||||
|
|
||||||
screenStack.CurrentScreen?.OnExiting(next);
|
|
||||||
base.OnExiting(next);
|
base.OnExiting(next);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user