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
22f3068abf
commit
5326cdece5
|
@ -332,7 +332,7 @@ namespace PeepingTom {
|
||||||
|
|
||||||
private void AddEntry(PlayerCharacter targeter, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None) {
|
private void AddEntry(PlayerCharacter targeter, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None) {
|
||||||
ImGui.Selectable(targeter.Name, false, flags);
|
ImGui.Selectable(targeter.Name, false, flags);
|
||||||
bool hover = ImGui.IsItemHovered();
|
bool hover = ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled);
|
||||||
bool left = hover && ImGui.IsMouseClicked(0);
|
bool left = hover && ImGui.IsMouseClicked(0);
|
||||||
bool right = hover && ImGui.IsMouseClicked(1);
|
bool right = hover && ImGui.IsMouseClicked(1);
|
||||||
bool present = this.pi.ClientState.Actors.Any(actor => actor.ActorId == targeter.ActorId);
|
bool present = this.pi.ClientState.Actors.Any(actor => actor.ActorId == targeter.ActorId);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user