From 8576208ace87427e4ae6e8ce5807cf75c6b53ec2 Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 13 Jul 2022 15:06:30 -0400 Subject: [PATCH] feat: add linkshell names to channel picker --- ChatTwo/Ui/ChatLog.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ChatTwo/Ui/ChatLog.cs b/ChatTwo/Ui/ChatLog.cs index 3699d0a..ba36639 100755 --- a/ChatTwo/Ui/ChatLog.cs +++ b/ChatTwo/Ui/ChatLog.cs @@ -494,6 +494,20 @@ internal sealed class ChatLog : IUiComponent { ?.Name ?.RawString ?? channel.ToString(); + if (channel.IsLinkshell()) { + var lsName = this.Ui.Plugin.Functions.Chat.GetLinkshellName(channel.LinkshellIndex()); + if (!string.IsNullOrWhiteSpace(lsName)) { + name += $": {lsName}"; + } + } + + if (channel.IsCrossLinkshell()) { + var lsName = this.Ui.Plugin.Functions.Chat.GetCrossLinkshellName(channel.LinkshellIndex()); + if (!string.IsNullOrWhiteSpace(lsName)) { + name += $": {lsName}"; + } + } + if (ImGui.Selectable(name)) { this.Ui.Plugin.Functions.Chat.SetChannel(channel); this._tellTarget = null;