Fix room title in the breadcrumbs

This commit is contained in:
smoogipoo 2019-02-07 19:52:33 +09:00
parent 1c2450a95a
commit 17fdfc15d9
2 changed files with 5 additions and 3 deletions

View File

@ -137,7 +137,7 @@ namespace osu.Game.Screens.Multi.Lounge
currentRoom.Value = room; currentRoom.Value = room;
this.Push(new MatchSubScreen(s => pushGameplayScreen?.Invoke(s))); this.Push(new MatchSubScreen(room, s => pushGameplayScreen?.Invoke(s)));
} }
} }
} }

View File

@ -23,7 +23,7 @@ namespace osu.Game.Screens.Multi.Match
{ {
public override bool AllowBeatmapRulesetChange => false; public override bool AllowBeatmapRulesetChange => false;
public override string Title => roomId?.Value == null ? "New room" : name.Value; public override string Title { get; }
public override string ShortTitle => "room"; public override string ShortTitle => "room";
@ -36,8 +36,10 @@ namespace osu.Game.Screens.Multi.Match
[Resolved(typeof(Room), nameof(Room.Playlist))] [Resolved(typeof(Room), nameof(Room.Playlist))]
private BindableList<PlaylistItem> playlist { get; set; } private BindableList<PlaylistItem> playlist { get; set; }
public MatchSubScreen(Action<Screen> pushGameplayScreen) public MatchSubScreen(Room room, Action<Screen> pushGameplayScreen)
{ {
Title = room.RoomID.Value == null ? "New room" : room.Name;
InternalChild = new Match(pushGameplayScreen) InternalChild = new Match(pushGameplayScreen)
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,