From 5326cdece5166005ad924d89eae18f15b04dd271 Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 28 Jul 2020 19:13:31 -0400 Subject: [PATCH] fix: allow hover on disable This still worked without this flag, but that was probably a bug, so include this flag just in case. --- Peeping Tom/PluginUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Peeping Tom/PluginUI.cs b/Peeping Tom/PluginUI.cs index bb4c698..9f64033 100644 --- a/Peeping Tom/PluginUI.cs +++ b/Peeping Tom/PluginUI.cs @@ -332,7 +332,7 @@ namespace PeepingTom { private void AddEntry(PlayerCharacter targeter, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None) { ImGui.Selectable(targeter.Name, false, flags); - bool hover = ImGui.IsItemHovered(); + bool hover = ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled); bool left = hover && ImGui.IsMouseClicked(0); bool right = hover && ImGui.IsMouseClicked(1); bool present = this.pi.ClientState.Actors.Any(actor => actor.ActorId == targeter.ActorId);