Originally Posted by Vrul
All of the Set...Texture methods have an equivalent Set...Atlas method so SetNormalAtlas should work as a direct substitution.
|
I finally figured it out, thanks for the hints.
Replace:
Code:
local texture = GetItemIcon(itemID)
icon:SetNormalTexture(texture)
with:
Code:
icon:SetNormalAtlas(categorySkillRank >= oreagent.requiredSkillRank and "tradeskills-icon-add" or "tradeskills-icon-locked")