From 26b06c5bbe37d5d551022158db36487694534767 Mon Sep 17 00:00:00 2001 From: ackis Date: Thu, 14 May 2009 20:18:50 +0000 Subject: [PATCH] Change where tooltip properties are set. --- ARLDatamine.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 1.7.9.5