View Single Post
05-15-16, 01:56 AM   #46
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
Originally Posted by Nitrak View Post
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.
You shouldn't have to change anything unless you were doing something with pathnames.
Code snippet below uses Icon the same was as live.

Code:
  local Name, _, Icon = GetSpellInfo(SpellID)

  -- Check if the spell was removed from the game.
  if Name == nil then
    Name = format('%s removed from the game', SpellID)
    Icon = [[INTERFACE\ICONS\INV_MISC_QUESTIONMARK]]
  end

  TO.args[AuraGroup] = {
    type = 'group',
    name = format('|T%s:20:20:0:5|t |cFFFFFFFF%s|r (%s)', Icon, Name, SpellID),

Last edited by galvin : 05-15-16 at 02:04 AM.