View Single Post
01-02-21, 02:50 PM   #4
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 219
Originally Posted by Vrul View Post
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")

Last edited by bsmorgan : 01-02-21 at 02:56 PM.
  Reply With Quote