parent
36c265a5e1
commit
3bf257227f
|
@ -102,7 +102,7 @@ local function SetValue(self, text, icon, link)
|
||||||
local id = link and link:match("item:(%d+)")
|
local id = link and link:match("item:(%d+)")
|
||||||
self.link, self.index, self.itemIndex = nil
|
self.link, self.index, self.itemIndex = nil
|
||||||
if id then self.link = link end
|
if id then self.link = link end
|
||||||
if id and GetItemCount(id) < text or link and not id and GetCurencyCount(link) < text then
|
if id and (GetItemCount(id) or 0) < text or link and not id and (GetCurencyCount(link) or 0) < text then
|
||||||
color = "|cffff9999"
|
color = "|cffff9999"
|
||||||
end
|
end
|
||||||
self.text:SetText(color..text)
|
self.text:SetText(color..text)
|
||||||
|
|
Loading…
Reference in New Issue