View Single Post
07-04-16, 12:06 PM   #78
Nitrak
A Deviate Faerie Dragon
 
Nitrak's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 14
Originally Posted by galvin View Post
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),
Though I was using pathnames, as I linked above.

I have a list where the content of my list are an icon followed by the spells name using ACE3.

I don't see how I can put my icons into the string with the change (if at all possible)

EDIT: I fixed it by using: "|T" .. icon .. ":18:18:0:0|t " instead

Last edited by Nitrak : 07-04-16 at 12:30 PM.