# HG changeset patch # User contrebasse # Date 1304026770 -7200 # Node ID 416c307fd00b964f5fcdefd2d394899bd25ba012 # Parent 22fa64c9b2de243222e6b4ac3fce00b7dbe15354 Add recipe tooltip for the crafted reagent in the external window diff -r 22fa64c9b2de -r 416c307fd00b SecureMenu.lua --- a/SecureMenu.lua Thu Apr 28 21:43:06 2011 +0200 +++ b/SecureMenu.lua Thu Apr 28 23:39:30 2011 +0200 @@ -38,10 +38,18 @@ GameTooltip:Show() GameTooltip:ClearAllPoints() GameTooltip:SetPoint("TOPRIGHT",self,"TOPLEFT",10,0) + if self.spellLink then + A.tooltipRecipe:SetOwner(GameTooltip) + A.tooltipRecipe:SetHyperlink(self.spellLink) + A.tooltipRecipe:Show() + A.tooltipRecipe:ClearAllPoints() + A.tooltipRecipe:SetPoint("TOPRIGHT",GameTooltip,"BOTTOMRIGHT") + end end end) MenuFrame:SetScript("OnLeave",function() GameTooltip:Hide() + A.tooltipRecipe:Hide() end) A.MenuFrame = MenuFrame @@ -287,6 +295,7 @@ -- Save vars to show the tooltip later MenuFrame.reagentLink = link + MenuFrame.spellLink = A.data[itemID].spellLink -- Loop over the available recipes for _,reagent in ipairs(A.data[itemID]) do