feat: add option to disable self-logging
This can only happen when targeting your own minion and will eventually be fixed, but for now, add an option for it.
This commit is contained in:
parent
7fa7204179
commit
1f230b79de
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue