comparison ReagentMaker.lua @ 43:00c2282f073a v1.0beta0

More fancy errors !
author contrebasse
date Sat, 30 Apr 2011 00:07:41 +0200
parents c6a1f1cf560c
children 40d6886d1966
comparison
equal deleted inserted replaced
42:d74613eb5f72 43:00c2282f073a
203 if not reagentID or not A.data[reagentID] then return end 203 if not reagentID or not A.data[reagentID] then return end
204 204
205 btn.textureHighlight:Show() 205 btn.textureHighlight:Show()
206 206
207 -- Tooltips 207 -- Tooltips
208 local link 208 local link = A.data[reagentID].spellLink
209 if A.data[reagentID].spellLink then
210 link = A.data[reagentID].spellLink
211 else
212 A.DEBUG("Recipe link not found for "..reagentID)
213 return
214 end
215
216 if link then 209 if link then
217 A.tooltipRecipe:SetOwner(btn) 210 A.tooltipRecipe:SetOwner(btn)
218 A.tooltipRecipe:SetHyperlink(link) 211 A.tooltipRecipe:SetHyperlink(link)
219 A.tooltipRecipe:Show() 212 A.tooltipRecipe:Show()
220 A.tooltipRecipe:ClearAllPoints() 213 A.tooltipRecipe:ClearAllPoints()
221 A.tooltipRecipe:SetPoint("BOTTOMLEFT",GameTooltip,"BOTTOMRIGHT") 214 A.tooltipRecipe:SetPoint("BOTTOMLEFT",GameTooltip,"BOTTOMRIGHT")
215 else
216 -- Shouldn't happend, but just in case...
217 A.Error("Recipe link not found for "..reagentID)
222 end 218 end
223 end 219 end
224 220
225 function A.btnLeft(btn) 221 function A.btnLeft(btn)
226 btn.textureHighlight:Hide() 222 btn.textureHighlight:Hide()