diff --git a/Peeping Tom/Configuration.cs b/Peeping Tom/Configuration.cs index 6b439ca..d95efcc 100644 --- a/Peeping Tom/Configuration.cs +++ b/Peeping Tom/Configuration.cs @@ -30,6 +30,7 @@ namespace PeepingTom { public bool LogParty { get; set; } = true; public bool LogAlliance { get; set; } = false; public bool LogInCombat { get; set; } = false; + public bool LogSelf { get; set; } = false; public bool FocusTargetOnHover { get; set; } = true; public bool PlaySoundOnTarget { get; set; } = false; diff --git a/Peeping Tom/PluginUI.cs b/Peeping Tom/PluginUI.cs index 9f5445f..a739482 100644 --- a/Peeping Tom/PluginUI.cs +++ b/Peeping Tom/PluginUI.cs @@ -160,6 +160,12 @@ namespace PeepingTom { this.config.Save(); } + bool logSelf = this.config.LogSelf; + if (ImGui.Checkbox("Log yourself", ref logSelf)) { + this.config.LogSelf = logSelf; + this.config.Save(); + } + ImGui.EndTabItem(); } @@ -506,6 +512,7 @@ namespace PeepingTom { .Where(actor => this.config.LogParty || this.pi.ClientState.PartyList.All(member => member.Actor?.ActorId != actor.ActorId)) .Where(actor => this.config.LogAlliance || !this.InAlliance(actor)) .Where(actor => this.config.LogInCombat || !this.InCombat(actor)) + .Where(actor => this.config.LogSelf || actor.ActorId != player.ActorId) .ToArray(); } }