fix: allow hover on disable

This still worked without this flag, but that was probably a bug, so
include this flag just in case.
This commit is contained in:
Anna 2020-07-28 19:13:31 -04:00
parent 22f3068abf
commit 5326cdece5
1 changed files with 1 additions and 1 deletions

View File

@ -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);