Originally Posted by icyblade
- We can use texture:SetTexture(file_id) now, so GetSpellInfo will not return a texture path as the 3rd return value
We use this code to set an icon now:
Lua Code:
local _, _, icon = GetSpellInfo(spell_id) texture:SetTexuture(icon)
In Legion, that's easier:
Lua Code:
file_id = GetSpellTexture(spell_id) texture:SetTexuture(file_id)
|
Ok, guess I'll be muggins here but
can you get the file path somehow or other? From my testing, bgFile doesn't take those index numbers well. (nb: result is a green frame)
lua Code:
local _, _, _, _, _, _, _, _, _, itemTexture = GetItemInfo(v)
hFrame:SetBackdrop( { bgFile = itemTexture })