-Updated version
Xruptor [01-01-11 - 16:22]
-Updated version
-Tooltip should only display buff/debuff tooltips but hide everything else.
-We hope! LOL
diff --git a/xanHoudiniTooltip.lua b/xanHoudiniTooltip.lua
index a564724..b70a3d2 100644
--- a/xanHoudiniTooltip.lua
+++ b/xanHoudiniTooltip.lua
@@ -12,19 +12,12 @@ local function processAuraTooltip(self, unitid, index, filter)
auraSwitch = true
end
-local function processCombatTooltip(self, unitid, index, filter)
- if InCombatLockdown() then
- self:Hide()
- return
- end
-end
-
function f:PLAYER_LOGIN()
-- GameTooltip:HookScript("OnShow", function(self)
-- local name, unitid = self:GetUnit()
-- local parent = self:GetParent()
- -- if InCombatLockdown() and not auraSwitch then
+ -- if InCombatLockdown() then
-- self:Hide()
-- return
-- end
@@ -45,15 +38,6 @@ function f:PLAYER_LOGIN()
hooksecurefunc(GameTooltip, "SetUnitBuff", processAuraTooltip)
hooksecurefunc(GameTooltip, "SetUnitDebuff", processAuraTooltip)
- -- hooksecurefunc(GameTooltip, "SetUnit", processCombatTooltip)
- -- hooksecurefunc(GameTooltip, "SetAction", processCombatTooltip)
- -- hooksecurefunc(GameTooltip, "SetPetAction", processCombatTooltip)
- -- hooksecurefunc(GameTooltip, "SetShapeshift", processCombatTooltip)
- -- hooksecurefunc(GameTooltip, "SetInventoryItem", processCombatTooltip)
-
- -- hooksecurefunc(GameTooltip, "SetBagItem", processCombatTooltip)
- -- hooksecurefunc(GameTooltip, "SetHyperlink", processCombatTooltip)
-
self:UnregisterEvent("PLAYER_LOGIN")
self.PLAYER_LOGIN = nil
end
diff --git a/xanHoudiniTooltip.toc b/xanHoudiniTooltip.toc
index f2b641e..9202a60 100644
--- a/xanHoudiniTooltip.toc
+++ b/xanHoudiniTooltip.toc
@@ -2,6 +2,6 @@
## Title: xanHoudiniTooltip
## Notes: Hides the game tooltip while in combat.
## Author: Xruptor
-## Version: 1.0
+## Version: 1.1
xanHoudiniTooltip.lua