From a8b296cb3f349a84355e680556274fcdab9ed986 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sat, 15 Jan 2011 18:33:09 -0500 Subject: [PATCH] -Added a few changes to ignore frames. -Will be updating the ignore frames list as I see the need. --- xanTooltipHoudini.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/xanTooltipHoudini.lua b/xanTooltipHoudini.lua index 5e17425..566dacb 100644 --- a/xanTooltipHoudini.lua +++ b/xanTooltipHoudini.lua @@ -4,6 +4,15 @@ f:SetScript("OnEvent", function(self, event, ...) if self[event] then return sel local auraSwitch = false +local ignoreFrames = { + ["TemporaryEnchantFrame"] = true, + ["QuestInfoRewardsFrame"] = true, +} +--add the loot frames +for i=1, NUM_GROUP_LOOT_FRAMES do + ignoreFrames["GroupLootFrame" .. i] = true +end + ---------------------- -- Enable -- ---------------------- @@ -44,6 +53,11 @@ function f:PLAYER_LOGIN() --only use this if showAuras is false if XTH_DB and not XTH_DB.showAuras then if InCombatLockdown() then + local owner = self:GetOwner() + if owner and owner:GetParent() and owner:GetParent():GetName() and ignoreFrames[owner:GetParent():GetName()] then + --do nothing + return + end self:Hide() return end @@ -61,7 +75,7 @@ function f:PLAYER_LOGIN() local owner = self:GetOwner() if InCombatLockdown() and not auraSwitch then --check for temporary enchant frame - if owner and owner:GetParent() and owner:GetParent():GetName() and owner:GetParent():GetName() == "TemporaryEnchantFrame" then + if owner and owner:GetParent() and owner:GetParent():GetName() and ignoreFrames[owner:GetParent():GetName()] then --do nothing return end -- 1.7.9.5