feat: add linkshell names to channel picker

This commit is contained in:
Anna 2022-07-13 15:06:30 -04:00
parent ccb52b85b2
commit c4813dfe8b
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
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;