comparison SecureMenu.lua @ 35:5394c492850e

Oops, last commit broke tooltips
author contrebasse
date Fri, 29 Apr 2011 22:05:42 +0200
parents 0af9cb8a79f0
children 71e8b39f056e
comparison
equal deleted inserted replaced
34:0af9cb8a79f0 35:5394c492850e
231 else 231 else
232 btn = menuEntries[numActiveEntries+1] 232 btn = menuEntries[numActiveEntries+1]
233 end 233 end
234 234
235 -- Set text and icon 235 -- Set text and icon
236 local name, _, _, _, _, _, _, _, _, texture = GetItemInfo(reagent[1]) 236 local name, link, _, _, _, _, _, _, _, texture = GetItemInfo(reagent[1])
237 if name then 237 if name then
238 btn.itemName:SetText(name) 238 btn.itemName:SetText(name)
239 else 239 else
240 --A.DEBUG("No item name : "..reagent[1]) 240 --A.DEBUG("No item name : "..reagent[1])
241 return 241 return
309 menuEntries[i]:Hide() 309 menuEntries[i]:Hide()
310 end 310 end
311 numActiveEntries = 0 311 numActiveEntries = 0
312 312
313 -- Fill the info of the reagent to make 313 -- Fill the info of the reagent to make
314 local name, _, quality, _, _, _, _, _, _, texture = GetItemInfo(itemID) 314 local name, link, quality, _, _, _, _, _, _, texture = GetItemInfo(itemID)
315 SetPortraitToTexture(itemIcon, texture) 315 SetPortraitToTexture(itemIcon, texture)
316 TitleText:SetText(name) 316 TitleText:SetText(name)
317 local color = ITEM_QUALITY_COLORS[quality] 317 local color = ITEM_QUALITY_COLORS[quality]
318 TitleText:SetTextColor(color.r, color.g, color.b) 318 TitleText:SetTextColor(color.r, color.g, color.b)
319 319