Quantcast

Change where tooltip properties are set.

ackis [05-14-09 - 20:18]
Change where tooltip properties are set.
Filename
ARLDatamine.lua
diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index 234b2ab..33e7205 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -90,8 +90,6 @@ local function LoadRecipe()
 end

 local ARLDatamineTT = CreateFrame("GameTooltip","ARLDatamineTT",UIParent,"GameTooltipTemplate")
-ARLDatamineTT:SetOwner(WorldFrame, "ANCHOR_NONE")
-GameTooltip_SetDefaultAnchor(ARLDatamineTT, UIParent)

 -- Description: Parses a trainer, comparing skill levels internal to those on the trainer.

@@ -375,6 +373,9 @@ function addon:ScanVendor()
 		-- Get the NPC ID
 		local targetID = tonumber(string.sub(UnitGUID("target"),-12,-7),16)

+		ARLDatamineTT:SetOwner(WorldFrame, "ANCHOR_NONE")
+		GameTooltip_SetDefaultAnchor(ARLDatamineTT, UIParent)
+
 		for i=1,GetMerchantNumItems(),1 do
 			local name, _, _, _, numAvailable = GetMerchantItemInfo(i)
 			ARLDatamineTT:SetMerchantItem(i)