Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
using osu.Game.Configuration;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Cursor;
using osu.Game.Graphics.Sprites;
using osu.Game.Online;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Online.API;
Expand Down Expand Up @@ -261,6 +262,7 @@ public partial class MultiplayerMatchSubScreen : OnlinePlaySubScreen, IPreviewTr

public override string ShortTitle => "room";
private LinkFlowContainer linkFlowContainer = null!;
private OsuSpriteText channelIdText = null!;
private StandAloneChatDisplay chatDisplay = null!;

public override bool? ApplyModTrackAdjustments => true;
Expand Down Expand Up @@ -473,7 +475,14 @@ private void load()
Content = new[]
{
new Drawable[] { new OverlinedHeader("Lobby ID") },
new Drawable[] { linkFlowContainer = new LinkFlowContainer { Height = 24, AutoSizeAxes = Axes.X } },
new Drawable[]
{
linkFlowContainer = new LinkFlowContainer { Height = 24, AutoSizeAxes = Axes.X },
},
new Drawable[]
{
channelIdText = new OsuSpriteText { Height = 24, Text = @"Loading chat..." },
},
new Drawable[]
{
new ParticipantsListHeader()
Expand Down Expand Up @@ -694,6 +703,11 @@ protected override void LoadComplete()

userModsSelectOverlayRegistration = overlayManager?.RegisterBlockingOverlay(userModsSelectOverlay);

chatDisplay.Channel.BindValueChanged(channel =>
{
channelIdText.Text = $@"Chat channel ID: {channel.NewValue?.Id ?? 0}";
});

Beatmap.BindValueChanged(vce =>
{
Scheduler.Add(() =>
Expand Down