Mercurial > wow > reagentmaker
comparison ReagentMaker.lua @ 6:43e21c6513e0
Manage the tooltips in the case of a spell instead of a tradeskill (milling, prospecting...)
author | contrebasse |
---|---|
date | Sat, 02 Apr 2011 21:43:25 +0200 |
parents | cea9633a6d4e |
children | 28d5f1fbd33f |
comparison
equal
deleted
inserted
replaced
5:cea9633a6d4e | 6:43e21c6513e0 |
---|---|
188 btn.label:Show() | 188 btn.label:Show() |
189 end | 189 end |
190 | 190 |
191 -- Tooltips | 191 -- Tooltips |
192 A.tooltipRecipe:SetOwner(btn) | 192 A.tooltipRecipe:SetOwner(btn) |
193 A.tooltipRecipe:SetHyperlink(GetTradeSkillRecipeLink(A.findSkillIndex(reagentID))) | 193 if A.data[reagentID].spell then |
194 A.tooltipRecipe:SetHyperlink(GetSpellLink(A.data[reagentID].spellID)) | |
195 else | |
196 A.tooltipRecipe:SetHyperlink(GetTradeSkillRecipeLink(A.findSkillIndex(reagentID))) | |
197 end | |
194 A.tooltipRecipe:Show() | 198 A.tooltipRecipe:Show() |
195 A.tooltipRecipe:ClearAllPoints() | 199 A.tooltipRecipe:ClearAllPoints() |
196 --A.tooltipRecipe:SetPoint("TOPLEFT",btn,"TOPRIGHT") | 200 --A.tooltipRecipe:SetPoint("TOPLEFT",btn,"TOPRIGHT") |
197 A.tooltipRecipe:SetPoint("BOTTOMLEFT",GameTooltip,"BOTTOMRIGHT") | 201 A.tooltipRecipe:SetPoint("BOTTOMLEFT",GameTooltip,"BOTTOMRIGHT") |
198 | 202 |
199 A.tooltipReagent:SetOwner(A.tooltipRecipe) | 203 if #(A.data[reagentID]) == 1 then |
200 local name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(A.data[reagentID][1][1]) | 204 A.tooltipReagent:SetOwner(A.tooltipRecipe) |
201 A.tooltipReagent:SetHyperlink(link) | 205 local name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(A.data[reagentID][1][1]) |
202 A.tooltipReagent:Show() | 206 A.tooltipReagent:SetHyperlink(link) |
203 A.tooltipReagent:ClearAllPoints() | 207 A.tooltipReagent:Show() |
204 A.tooltipReagent:SetPoint("BOTTOMLEFT",A.tooltipRecipe,"BOTTOMRIGHT") | 208 A.tooltipReagent:ClearAllPoints() |
209 A.tooltipReagent:SetPoint("BOTTOMLEFT",A.tooltipRecipe,"BOTTOMRIGHT") | |
210 end | |
205 end | 211 end |
206 | 212 |
207 function A.btnLeft(btn) | 213 function A.btnLeft(btn) |
208 btn.textureHighlight:Hide() | 214 btn.textureHighlight:Hide() |
209 btn.label:Hide() | 215 btn.label:Hide() |