From 197786eb9115d899021755338e07b1e0c594ff6c Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Fri, 22 Jul 2011 09:39:51 -0500 Subject: [PATCH] Bug fix where item and spell tooltips were hiding when Fade options where set to "Hide" and mousing over spell/item tooltips weren't showing up at all. --- Modules/Fade/Fade.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Modules/Fade/Fade.lua b/Modules/Fade/Fade.lua index c8f6e9e..2e05d9e 100644 --- a/Modules/Fade/Fade.lua +++ b/Modules/Fade/Fade.lua @@ -128,7 +128,7 @@ local checkTooltipAlpha = function() end function mod:OnShow() - if UnitExists(StarTip.unit) or self.isUnit then + if self.isUnit then updateExistenceFrame:SetScript("OnUpdate", checkExistence) else updateAlphaFrame:SetScript("OnUpdate", checkTooltipAlpha) @@ -198,3 +198,13 @@ function mod:SetUnit() self.isUnit = true updateExistenceFrame:SetScript("OnUpdate", checkExistence) end + +function mod:SetItem() + self.isUnit = false + updateExistenceFrame:SetScript("OnUpdate", checkExistence) +end + +function mod:SetSpell() + self.isUnit = false + updateExistenceFrame:SetScript("OnUpdate", nil) +end -- 1.7.9.5