feat: add linkshell names to channel picker

This commit is contained in:
Anna 2022-07-13 15:06:30 -04:00
parent 03ef58f412
commit 8576208ace
1 changed files with 14 additions and 0 deletions

View File

@ -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;