mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Fix room title in the breadcrumbs
This commit is contained in:
parent
1c2450a95a
commit
17fdfc15d9
@ -137,7 +137,7 @@ namespace osu.Game.Screens.Multi.Lounge
|
||||
|
||||
currentRoom.Value = room;
|
||||
|
||||
this.Push(new MatchSubScreen(s => pushGameplayScreen?.Invoke(s)));
|
||||
this.Push(new MatchSubScreen(room, s => pushGameplayScreen?.Invoke(s)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Screens.Multi.Match
|
||||
{
|
||||
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";
|
||||
|
||||
@ -36,8 +36,10 @@ namespace osu.Game.Screens.Multi.Match
|
||||
[Resolved(typeof(Room), nameof(Room.Playlist))]
|
||||
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)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
|
Loading…
Reference in New Issue
Block a user