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.
Scott Sibley [07-22-11 - 14:39]
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.
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