From bc5cab282757b564354821a3514e1aad53834b88 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 21 Nov 2024 00:22:47 +0100 Subject: [PATCH 1/3] alternativepower: Don't mess with forbidden tooltips --- elements/alternativepower.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elements/alternativepower.lua b/elements/alternativepower.lua index c0ca6bc1..5700f435 100644 --- a/elements/alternativepower.lua +++ b/elements/alternativepower.lua @@ -69,13 +69,15 @@ local function updateTooltip(self) end local function onEnter(self) - if(not self:IsVisible()) then return end + if(GameTooltip:IsForbidden() or not self:IsVisible()) then return end GameTooltip_SetDefaultAnchor(GameTooltip, self) self:UpdateTooltip() end local function onLeave() + if(GameTooltip:IsForbidden()) then return end + GameTooltip:Hide() end From 1ec939a98d5166715cc97cb94679aac39fd1be8b Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 21 Nov 2024 00:22:52 +0100 Subject: [PATCH 2/3] phaseindicator: Don't mess with forbidden tooltips --- elements/phaseindicator.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elements/phaseindicator.lua b/elements/phaseindicator.lua index 4242a7f1..5ada3c3d 100644 --- a/elements/phaseindicator.lua +++ b/elements/phaseindicator.lua @@ -50,7 +50,7 @@ local function UpdateTooltip(element) end local function onEnter(element) - if(not element:IsVisible()) then return end + if(GameTooltip:IsForbidden() or not element:IsVisible()) then return end if(element.reason) then GameTooltip:SetOwner(element, 'ANCHOR_BOTTOMRIGHT') @@ -59,6 +59,8 @@ local function onEnter(element) end local function onLeave() + if(GameTooltip:IsForbidden()) then return end + GameTooltip:Hide() end From 4f3bae635a42b0f551304e341c15a41c64772b4e Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 21 Nov 2024 00:22:58 +0100 Subject: [PATCH 3/3] totems: Don't mess with forbidden tooltips --- elements/totems.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elements/totems.lua b/elements/totems.lua index b8541414..2d81c0ec 100644 --- a/elements/totems.lua +++ b/elements/totems.lua @@ -53,13 +53,15 @@ local function UpdateTooltip(self) end local function OnEnter(self) - if(not self:IsVisible()) then return end + if(GameTooltip:IsForbidden() or not self:IsVisible()) then return end GameTooltip:SetOwner(self, 'ANCHOR_BOTTOMRIGHT') self:UpdateTooltip() end local function OnLeave() + if(GameTooltip:IsForbidden()) then return end + GameTooltip:Hide() end