Skip to content

Commit

Permalink
ui(radar): don't display pip tooltip if popup is open
Browse files Browse the repository at this point in the history
  • Loading branch information
mwerle committed Nov 25, 2024
1 parent e215579 commit d16c081
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/pigui/modules/radar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ radar2d.draw = function(self, center)
end
end
end
if #tooltip > 0 then
if not radar_popup_displayed and #tooltip > 0 then
ui.setTooltip(table.concat(tooltip, "\n"))
end
end
Expand Down Expand Up @@ -332,8 +332,8 @@ radar3d.draw = function(self, center)
end
end

-- return tooltip if mouse is over a target
if #tooltip > 0 then
-- display tooltip if mouse is over a target pip
if not radar_popup_displayed and #tooltip > 0 then
ui.setTooltip(table.concat(tooltip, "\n"))
end

Expand Down

0 comments on commit d16c081

Please sign in to comment.