From d16c081c11a4913a5ecd9fe35b5d84126aa4f740 Mon Sep 17 00:00:00 2001 From: Michael Werle Date: Mon, 25 Nov 2024 13:54:13 +0900 Subject: [PATCH] ui(radar): don't display pip tooltip if popup is open --- data/pigui/modules/radar.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/pigui/modules/radar.lua b/data/pigui/modules/radar.lua index f82efd6ac2..e1e1ef4879 100644 --- a/data/pigui/modules/radar.lua +++ b/data/pigui/modules/radar.lua @@ -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 @@ -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