Mercurial > wow > reagentmaker
comparison ReagentMaker.lua @ 7:28d5f1fbd33f
Disable the reagent's reagent tooltip, as no add-on like Datastore can hook it right now
author | contrebasse |
---|---|
date | Sat, 02 Apr 2011 21:45:14 +0200 |
parents | 43e21c6513e0 |
children | 17844b0b88c1 |
comparison
equal
deleted
inserted
replaced
6:43e21c6513e0 | 7:28d5f1fbd33f |
---|---|
77 end -- for | 77 end -- for |
78 | 78 |
79 A.tooltipRecipe = CreateFrame("GameTooltip", "ReagentMaker_tooltipRecipe",UIParent, "GameTooltipTemplate") | 79 A.tooltipRecipe = CreateFrame("GameTooltip", "ReagentMaker_tooltipRecipe",UIParent, "GameTooltipTemplate") |
80 A.tooltipRecipe:SetFrameStrata("TOOLTIP") | 80 A.tooltipRecipe:SetFrameStrata("TOOLTIP") |
81 A.tooltipRecipe:Hide() | 81 A.tooltipRecipe:Hide() |
82 --[[ | |
82 A.tooltipReagent = CreateFrame("GameTooltip", "ReagentMaker_tooltipReagent",UIParent, "GameTooltipTemplate") | 83 A.tooltipReagent = CreateFrame("GameTooltip", "ReagentMaker_tooltipReagent",UIParent, "GameTooltipTemplate") |
83 A.tooltipReagent:SetFrameStrata("TOOLTIP") | 84 A.tooltipReagent:SetFrameStrata("TOOLTIP") |
84 A.tooltipReagent:Hide() | 85 A.tooltipReagent:Hide() |
86 --]] | |
85 end -- function | 87 end -- function |
86 | 88 |
87 | 89 |
88 -- Function run avter selecting a item in the tradeskill window | 90 -- Function run avter selecting a item in the tradeskill window |
89 function A.ProcessReagent(btn, ...) | 91 function A.ProcessReagent(btn, ...) |
198 A.tooltipRecipe:Show() | 200 A.tooltipRecipe:Show() |
199 A.tooltipRecipe:ClearAllPoints() | 201 A.tooltipRecipe:ClearAllPoints() |
200 --A.tooltipRecipe:SetPoint("TOPLEFT",btn,"TOPRIGHT") | 202 --A.tooltipRecipe:SetPoint("TOPLEFT",btn,"TOPRIGHT") |
201 A.tooltipRecipe:SetPoint("BOTTOMLEFT",GameTooltip,"BOTTOMRIGHT") | 203 A.tooltipRecipe:SetPoint("BOTTOMLEFT",GameTooltip,"BOTTOMRIGHT") |
202 | 204 |
205 --[[ | |
203 if #(A.data[reagentID]) == 1 then | 206 if #(A.data[reagentID]) == 1 then |
204 A.tooltipReagent:SetOwner(A.tooltipRecipe) | 207 A.tooltipReagent:SetOwner(A.tooltipRecipe) |
205 local name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(A.data[reagentID][1][1]) | 208 local name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(A.data[reagentID][1][1]) |
206 A.tooltipReagent:SetHyperlink(link) | 209 A.tooltipReagent:SetHyperlink(link) |
207 A.tooltipReagent:Show() | 210 A.tooltipReagent:Show() |
208 A.tooltipReagent:ClearAllPoints() | 211 A.tooltipReagent:ClearAllPoints() |
209 A.tooltipReagent:SetPoint("BOTTOMLEFT",A.tooltipRecipe,"BOTTOMRIGHT") | 212 A.tooltipReagent:SetPoint("BOTTOMLEFT",A.tooltipRecipe,"BOTTOMRIGHT") |
210 end | 213 end |
214 --]] | |
211 end | 215 end |
212 | 216 |
213 function A.btnLeft(btn) | 217 function A.btnLeft(btn) |
214 btn.textureHighlight:Hide() | 218 btn.textureHighlight:Hide() |
215 btn.label:Hide() | 219 btn.label:Hide() |