Mercurial > wow > reagentmaker
comparison ReagentMaker.lua @ 19:f7b23db7bcc6
Correct tooltips for external tradeskills like milling
| author | contrebasse |
|---|---|
| date | Fri, 08 Apr 2011 19:58:08 +0200 |
| parents | c37c2a46723c |
| children | 4ea38bae4174 |
comparison
equal
deleted
inserted
replaced
| 18:c37c2a46723c | 19:f7b23db7bcc6 |
|---|---|
| 206 end | 206 end |
| 207 btn.label:Show() | 207 btn.label:Show() |
| 208 end | 208 end |
| 209 | 209 |
| 210 -- Tooltips | 210 -- Tooltips |
| 211 local reagentIndex = A.findSkillIndex(reagentID) | 211 local link |
| 212 if reagentIndex then | 212 if A.data[reagentID].spell then |
| 213 link = GetSpellLink(A.data[reagentID].spellID) | |
| 214 else | |
| 215 link = GetTradeSkillRecipeLink(A.findSkillIndex(reagentID)) | |
| 216 end | |
| 217 if link then | |
| 213 A.tooltipRecipe:SetOwner(btn) | 218 A.tooltipRecipe:SetOwner(btn) |
| 214 if A.data[reagentID].spell then | 219 A.tooltipRecipe:SetHyperlink(link) |
| 215 A.tooltipRecipe:SetHyperlink(GetSpellLink(A.data[reagentID].spellID)) | |
| 216 else | |
| 217 A.tooltipRecipe:SetHyperlink(GetTradeSkillRecipeLink(reagentIndex)) | |
| 218 end | |
| 219 A.tooltipRecipe:Show() | 220 A.tooltipRecipe:Show() |
| 220 A.tooltipRecipe:ClearAllPoints() | 221 A.tooltipRecipe:ClearAllPoints() |
| 221 --A.tooltipRecipe:SetPoint("TOPLEFT",btn,"TOPRIGHT") | 222 --A.tooltipRecipe:SetPoint("TOPLEFT",btn,"TOPRIGHT") |
| 222 A.tooltipRecipe:SetPoint("BOTTOMLEFT",GameTooltip,"BOTTOMRIGHT") | 223 A.tooltipRecipe:SetPoint("BOTTOMLEFT",GameTooltip,"BOTTOMRIGHT") |
| 223 | 224 |
