Quantcast

The default gesture now hides the tooltip when you go left, right, left, right.

Scott Sibley [10-05-10 - 07:29]
The default gesture now  hides the tooltip when you go left, right, left, right.
Filename
Modules/Gestures/Gestures.lua
StarTip.lua
diff --git a/Modules/Gestures/Gestures.lua b/Modules/Gestures/Gestures.lua
index 8ddea80..0161984 100644
--- a/Modules/Gestures/Gestures.lua
+++ b/Modules/Gestures/Gestures.lua
@@ -18,10 +18,7 @@ local defaults = {
 				enabled = true,
 				gestures = {{type="line", pattern="right"}, {type="line", pattern="left"}, {type="line", pattern="right"}, {type="line", pattern="left"}},
 				expression = [[
-_G.GameTooltip:SetOwner(_G.UIParent, "ANCHOR_CURSOR")
-_G.GameTooltip:SetParent(_G.UIParent)
-_G.GameTooltip:SetUnit("player")
-_G.GameTooltip:Show()
+_G.StarTip.unit = nil
 ]]
 			}
 		}
diff --git a/StarTip.lua b/StarTip.lua
index 4b82fdf..d92903b 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -635,53 +635,16 @@ function StarTip.OnTooltipSetUnit(...)
 	end
 	lastTime = GetTime()

-	StarTip.fading = false
+	--StarTip.fading = false
 	StarTip.unit = unit
-
-	--[[
-	if not UnitExists("mouseover") then
-		if UnitInRaid("player") then
-			for i=1, GetNumRaidMembers() do
-				for j, v in ipairs(UNIT_RAID_GROUPS) do
-					if unit == UnitName(v .. i) then
-						StarTip.unit = v .. i
-						break
-					end
-				end
-				if StarTip.unit ~= "mouseover" then break end
-			end
-		elseif UnitInParty("player") then
-			for i=1, GetNumPartyMembers() do
-				for j, v in ipairs(UNIT_PARTY_GROUPS) do
-					if unit == UnitName(v .. i) then
-						StarTip.unit = v .. i
-						break
-					end
-				end
-				if StarTip.unit ~= "mouseover" then break end
-			end
-		end
-		for i, v in ipairs(SINGLETON_CLASSIFICATIONS) do
-			if unit == UnitName(v) then
-				StarTip.unit = v
-			end
-		end
-	end
-	]]
-	if not UnitExists(StarTip.unit) then GameTooltip:Hide(); return end
-
-	--[[if StarTip.unit ~= "mouseover" then
-		unitFrameTimer = unitFrameTimer or LibTimer:New("StarTip.Throttle", 2, false, unitFrameHide, nil, StarTip.db.profile.errorLevel)
-		unitFrameTimer:Start()
-	end]]
-
+
 	if not StarTip.justSetUnit then
 		for k, v in StarTip:IterateModules() do
 			if v.SetUnit and v:IsEnabled() then v:SetUnit() end
 		end
 	end
 	StarTip.justSetUnit = nil
-	checkTooltipAlphaFrame:SetScript("OnUpdate", checkTooltipAlpha)
+	--checkTooltipAlphaFrame:SetScript("OnUpdate", checkTooltipAlpha)
 end

 function StarTip.OnTooltipSetItem(self, ...)