feat: add local send tell option
This commit is contained in:
parent
476e492720
commit
84b2ca0683
|
@ -379,12 +379,17 @@ internal sealed class PayloadHandler {
|
||||||
this.Log.DrawChunks(name, false);
|
this.Log.DrawChunks(name, false);
|
||||||
ImGui.Separator();
|
ImGui.Separator();
|
||||||
|
|
||||||
if (player.World.IsPublic) {
|
if (ImGui.Selectable("Send Tell")) {
|
||||||
if (ImGui.Selectable("Send Tell")) {
|
this.Log.Chat = $"/tell {player.PlayerName}";
|
||||||
this.Log.Chat = $"/tell {player.PlayerName}@{player.World.Name} ";
|
if (player.World.IsPublic) {
|
||||||
this.Log.Activate = true;
|
this.Log.Chat += $"@{player.World.Name}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.Log.Chat += " ";
|
||||||
|
this.Log.Activate = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (player.World.IsPublic) {
|
||||||
var party = this.Ui.Plugin.PartyList;
|
var party = this.Ui.Plugin.PartyList;
|
||||||
var leader = (ulong?) party[(int) party.PartyLeaderIndex]?.ContentId;
|
var leader = (ulong?) party[(int) party.PartyLeaderIndex]?.ContentId;
|
||||||
var isLeader = party.Length == 0 || this.Ui.Plugin.ClientState.LocalContentId == leader;
|
var isLeader = party.Length == 0 || this.Ui.Plugin.ClientState.LocalContentId == leader;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user