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:
parent
4046e0b557
commit
796b04a993
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user