Mercurial > wow > reagentmaker
comparison ReagentMaker.lua @ 30:fd76c8951b7d
Save the spell link to be able to display the tooltip even when the recipe is hidden
author | contrebasse |
---|---|
date | Thu, 28 Apr 2011 20:31:25 +0200 |
parents | 76414c6318ff |
children | 22fa64c9b2de |
comparison
equal
deleted
inserted
replaced
29:15123d11fc64 | 30:fd76c8951b7d |
---|---|
202 | 202 |
203 btn.textureHighlight:Show() | 203 btn.textureHighlight:Show() |
204 | 204 |
205 -- Tooltips | 205 -- Tooltips |
206 local link | 206 local link |
207 if A.data[reagentID].spell then | 207 if A.data[reagentID].spellLink then |
208 link = A.data[reagentID].spellLink | |
209 elseif A.data[reagentID].spellID then | |
208 link = GetSpellLink(A.data[reagentID].spellID) | 210 link = GetSpellLink(A.data[reagentID].spellID) |
209 else | 211 else |
212 A.DEBUG("Recipe link not found for "..reagentID) | |
213 return | |
214 --[[ | |
210 local reagentIndex = A.findSkillIndex(reagentID) | 215 local reagentIndex = A.findSkillIndex(reagentID) |
211 if reagentIndex then | 216 if reagentIndex then |
212 link = GetTradeSkillRecipeLink(A.findSkillIndex(reagentID)) | 217 link = GetTradeSkillRecipeLink(A.findSkillIndex(reagentID)) |
213 end | 218 end |
219 --]] | |
214 end | 220 end |
215 | 221 |
216 if link then | 222 if link then |
217 A.tooltipRecipe:SetOwner(btn) | 223 A.tooltipRecipe:SetOwner(btn) |
218 A.tooltipRecipe:SetHyperlink(link) | 224 A.tooltipRecipe:SetHyperlink(link) |