View Single Post
05-14-16, 05:02 AM   #43
Nitrak
A Deviate Faerie Dragon
 
Nitrak's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 14
Originally Posted by VincentSDSH View Post
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:
  1. local _, _, _, _, _, _, _, _, _, itemTexture = GetItemInfo(v)
  2. hFrame:SetBackdrop( { bgFile = itemTexture })
I would also like to know.

In my UI I have an inline Icon like this:

Code:
local spellname, _, icon = GetSpellInfo(spellID)

name = "\124T" .. icon .. ":24\124t" .. spellname
And with the change, icon returns a value to the icon ID, which is something I'm unable to use here.

Anyone have a workaround, or should I fundamentally change my code for Legion?

I'm also using ACE3 in my code, where I create a list from a key which is spells, and filling in the icon parameter ACE recieves with the Icon path, though hopefully once ACE3 adapts to the changes, the new ID will be sufficient.