- Using LibItemUpgradeInfo library to retrive the item level of upgraded items.

This commit is contained in:
Tercioo
2015-12-23 10:42:09 -02:00
parent 14486169c9
commit 68f52c10a9
17 changed files with 722 additions and 15 deletions
+2 -2
View File
@@ -385,14 +385,14 @@ local ButtonMetaFunctions = {}
end
-- icon
function ButtonMetaFunctions:SetIcon (texture, width, height, layout, texcoord, overlay, textdistance, leftpadding)
function ButtonMetaFunctions:SetIcon (texture, width, height, layout, texcoord, overlay, textdistance, leftpadding, textheight)
if (not self.icon) then
self.icon = self:CreateTexture (nil, "artwork")
self.icon:SetSize (self.height*0.8, self.height*0.8)
self.icon:SetPoint ("left", self.widget, "left", 4 + (leftpadding or 0), 0)
self.icon.leftpadding = leftpadding or 0
self.widget.text:ClearAllPoints()
self.widget.text:SetPoint ("left", self.icon, "right", textdistance or 2, 0)
self.widget.text:SetPoint ("left", self.icon, "right", textdistance or 2, 0 + (textheight or 0))
end
self.icon:SetTexture (texture)