Exit from match screen on escape

This commit is contained in:
smoogipoo
2018-12-25 17:14:56 +09:00
parent 91b83cd4b8
commit d4f5a8507c
2 changed files with 11 additions and 3 deletions

View File

@ -28,6 +28,7 @@ namespace osu.Game.Screens.Multi.Match
private readonly RoomBindings bindings = new RoomBindings();
private readonly MatchLeaderboard leaderboard;
private readonly Action<Screen> pushGameplayScreen;
[Cached]
@ -49,6 +50,7 @@ namespace osu.Game.Screens.Multi.Match
bindings.Room = room;
MatchChatDisplay chat;
Components.Header header;
RoomSettingsOverlay settings;
@ -71,7 +73,7 @@ namespace osu.Game.Screens.Multi.Match
new Drawable[]
{
leaderboard = new MatchLeaderboard(room) { RelativeSizeAxes = Axes.Both },
new MatchChatDisplay(room) { RelativeSizeAxes = Axes.Both }
chat = new MatchChatDisplay(room) { RelativeSizeAxes = Axes.Both }
},
},
}
@ -100,6 +102,8 @@ namespace osu.Game.Screens.Multi.Match
else
settings.Hide();
};
chat.Exit += Exit;
}
protected override void LoadComplete()